Changes made in one thread would not be reflected in the other.
在一个执行绪中所作的变更不会反映在另一个执行绪中。
This leaves you with 50 files, each containing the trace for just one thread.
这样将给您带来50个文件,每个文件仅包含一个线程的跟踪数据。
If the lock happens to be accessed by only one thread, biased locking can be applied.
如果锁刚好只被一个线程访问,则可以使用偏向锁。
By default, only one thread is started, though Red Hat and Fedora systems start at 8.
在默认情况下,只启动一个线程,但是RedHat和Fedora系统会启动8个线程。
If you remove one piece from the Mosaic or one thread from the tapestry, you destroy it.
倘若从拼画上取下一片或织锦上抽去一丝,这个作品就会被破坏。
Imagine, if you will, what happens if one thread is exiting just as another is being created.
可以想像一下,如果在一个线程正在创建的同时另一线程正在退出,那么会发生什么情况呢?
This breaks the one thread per request model, as the thread for a request never gets freed up.
这打破了每个请求使用一个线程的模型,因为用于一个请求的线程一直没有被释放。
Thus it is relatively straightforward to implement the classic one thread per connection model.
因此实现典型的每个连接一个线程的模型便非常简单。
The way the scheduler is set up here causes the whole scheduler to stop when one thread does so.
这里设置调度程序的方法将导致在其中一个线程停止时整个调度程序停止。
Then, one thread enters the synchronized block to initialize instance, while the other is blocked.
然后,一个线程进入synchronized块来初始化instance,而另一个线程则被阻断。
This is what is very different from the "one thread per request" which has been prevalent until now.
这与现在大行其道的“一个请求一个线程”有着很大的差别。
When one thread is executing a synchronized block, any thread waiting to enter that block is stalled.
当一个线程正在执行一个同步块时,任何等待进入该块的线程都将被阻塞。
No - transient data structures have one important restriction: they can only be used from one thread.
当然不能-transient版本有一个非常重要的限制:它只能被一个线程使用。
This could result in objects being moved from one thread to another through a series of loads and stores.
这可能导致通过一系列加载和存储将对象从一个线程移动到另一个线程。
With this approach, the consumer USES one thread to send the request and another to receive the response.
通过这种方法,使用者可以使用一个线程来发送请求,而使用另一个线程来接收响应。
If one thread attempts to read from a file whilst another is writing to it, the data may become corrupted.
如果一个线程尝试读取某个文件,而另一个线程对其进行写访问,则可能会损坏数据。
However, only one thread is running in this test run, so it's not especially useful for comparative analysis.
然而,在这个测试运行中只运行了一个线程,所以比较分析的用处并不大。
Use of the JNIEnv from one thread by another thread can lead to subtle bugs and crashes that are hard to debug.
一个线程使用另一个线程中的JNIEnv会导致一些小bug和难以调试的崩溃问题。
There is now a locking mechanism to ensure that only one thread at a time goes through any of the wrapped calls.
现在有一个锁机制来确保每次仅能有一个线程经过任何已包装的调用。
When one thread interrupts another, the interrupted thread does not necessarily stop what it is doing immediately.
当一个线程中断另一个线程时,被中断的线程不一定要立即停止正在做的事情。
That is, you make sure that only one thread at a time can access a certain data structure by locking and unlocking it.
这就是说,通过线程的锁定和解锁,对于某一数据结构,确保某一时刻只能有一个线程能够访问它。
Some users may find a need to use the pthread_join() call, which allows one thread to wait until another is completed.
有些用户可能发现需要使用 pthread_join()调用,这个函数可以使一个线程处于等待状态,直到另一个线程执行完成。
In other words, it would be possible for one thread to see the value of droid change, but not the value of history change.
换句话说,一个线程有可能看到droid值的变更,但看不到history值的变更。
This is the basis of the Comet pattern, with Jetty handling five concurrent requests on one thread, thanks to Continuations.
这是Comet模式的基本原理,Jetty使用这种原理在一个线程内处理5 个并发请求,这都是 Continuations 的功劳。
Keep in mind that Tomcat must allocate one thread per user, while the NIO server was configured with only four worker threads.
记住,Tomcat必须为每个用户分配一个线程,而NIO服务器只配置有4个工作线程。
Pool allocation does not work effectively if one thread of the application allocates memory and other thread frees the memory.
如果应用程序的一个线程分配内存,而其他线程释放内存,那么poolallocation实际上是无效的。
One thread asking another for information can cause a thread switch, or one thread preempting another can cause a thread switch.
当一个线程向另一个线程请求信息时,就可能引起线程切换。
Biased locking is derived from the observation that most locks are never accessed by more than one thread during their life time.
大多数锁,在它们的生命周期中,从来不会被多于一个线程所访问。
A locking policy is intended to affect execution behavior when more than one thread wants to acquire the same lock simultaneously.
当多个线程需要同时获取同一个锁的时候,锁定策略常常会影响执行行为。
A locking policy is intended to affect execution behavior when more than one thread wants to acquire the same lock simultaneously.
当多个线程需要同时获取同一个锁的时候,锁定策略常常会影响执行行为。
应用推荐