Please refer hpxiao's post in another thread.
请参考肖工在另一帖子的回覆。
The producer adding an element to the queue will wait for a consumer in another thread.
在队列中加入一个元素的生产者会等待另一个线程的消费者。
Like I said in another thread, we'll see how the modified stance penalties work out.
好像我上篇帖子说的那样,我们可以观察一下修正过的姿态惩罚的实际效果。
A programming error in another thread might have caused that thread to exit the semaphore more times than it entered.
另一个线程中的编程错误可能导致该线程退出信号量的次数超过它进入的次数。
Another thread running through this series is the role of doctors in the treatment of the mentally ill.
贯穿这部连续剧的另一主线是医生们在心理疾病患者的治疗过程中的作用。
A recipe construct can invoke another recipe construct in an asynchronous manner-that is, a recipe construct can start the execution of another recipe construct in a separate thread of execution.
配方构造可以用异步方式调用另一个配方构造—就是说,一个配方构造可以在单独的执行线程中启动另一个配方构造的执行。
So, if a thread is blocked in an I/O operation on a channel, another thread can close that channel.
所以,如果一个线程在某条通道的I/O操作上阻塞时,那么另一个线程可以将这条通道关闭。
Lock contention occurs when a lock is currently in use and another thread attempts to acquire it by another thread.
如果一个锁正在使用中,而另一个线程尝试获取它,这时会发生锁争用。
Lock contention occurs when a lock is currently in use and another thread tries to acquire it.
当一个锁当前正在使用,而另一个线程试图获取它,那么就会出现锁争用。
You might group them for purposes of convenience — for instance, all the threads in a thread pool belong to group X, while those in another pool belong to group Y — or for access control.
您可能是为了方便而将线程组合,例如,一个线程池中的所有线程都属于组x,而另一个池的所有线程则属于组y,或者是为了访问控制而将线程进行组合。
You might group them for purposes of convenience -- for instance, all the threads in a thread pool belong to group X, while those in another pool belong to group Y -- or for access control.
您可能是为了方便而将线程组合,例如,一个线程池中的所有线程都属于组X,而另一个池的所有线程则属于组Y,或者是为了访问控制而将线程进行组合。
This only succeeds if another thread does not already have the lock, in which case the current thread is blocked.
只有在其他线程不拥有锁的情况下才会成功,如果其他线程拥有锁,当前线程就被阻塞。
In the absence of synchronization, it is possible to see an up-to-date value for an object reference that was written by another thread and still see stale values for that object's state.
在缺乏同步的情况下,可能会遇到某个对象引用的更新值(由另一个线程写入)和该对象状态的旧值同时存在。
In the absence of synchronization, if one thread writes to a variable and another thread reads that same variable, the reading thread could see stale, or out-of-date, data.
没有同步时,如果一个线程读取另外一个线程正在写的变量,读的线程将看到过时的数据。
In the first example, the results of List.size could become invalid during the execution of the loop, because another thread could delete items from the list.
在第一个例子中,List .size的结果在循环的执行期间可能会变得无效,因为另一个线程可以从这个列表中删除条目。
For the function in Listing 2, extract the data property of the event, as this is the actual data sent by the thread, and pass it to another function for updating the UI.
对于清单2中的这个函数,提取event的data属性,因为这是被线程发送的实际数据,然后将它发送给另一个函数来更新ui。
Another important thread command used in programming is gprof.
编程中使用的另一个重要线程命令是gprof。
Speed is another advantage of MongoDB, mainly due to how it handles writes: they are stored in memory and later, via a background thread, written to disk.
速度是MongoDB的另外一个优势,主要是由于它处理写入的方式:它们存储在内存中,然后通过后台线程写入磁盘。
In looking at the code, you can see that we added another instance of a queue, and then passed that queue into the first thread pool class, ThreadURL.
分析这段代码时您可以看到,我们添加了另一个队列实例,然后将该队列传递给第一个线程池类ThreadURL。
In the original design, without locking, any syscalls made by one thread while another thread was talking to the pseudo server bypassed the pseudo design.
在最初的设计中,由于没有锁,一个线程在另一个线程与服务器对话时发起的系统调用都会绕过该p seudo设计。
In joinable state, another thread can synchronize on the thread's termination and recover its termination code using the function pthread_join .
在可连接状态中,另一个线程可以同步这个线程的终止,使用函数pthread_join来重新获得其终止代码。
The thread will in fact attempt another remove call on the queue and will become blocked until the next available request.
事实上,线程会对队列尝试另一个remove调用,并变成阻塞,直到下一个请求可用。
An application that must respond to events in a well-defined time has no way to ensure that another low-priority thread won't get scheduled in front of a high-priority thread.
一个必须在精确时间内响应事件的应用程序无法确保不会在一个高优先级线程之前调度另一个低优先级线程。
Even better, in recent JVMs, the performance cost of uncontended synchronization (when no thread attempts to acquire a lock when another thread already holds it) is quite modest.
不过现在好了一点,在最近的JVM 中,没有争用的同步(一个线程拥有锁的时候,没有其他线程企图获得锁)的性能成本还是很低的。
This could result in objects being moved from one thread to another through a series of loads and stores.
这可能导致通过一系列加载和存储将对象从一个线程移动到另一个线程。
In practice, dataflow variables provide an excellent way to communicate values from one thread to another, and they are commonly used to communicate results in multithreaded unit tests.
在实践中,数据流变量提供一种不错的方式来将值从一个线程传输到另一个线程,且它们通常用于传输多线程单元测试中的结果。
Another issue to be aware of is a thread floating stack limitation on Linux, as discussed in the "floating Stacks limitation" subsection of the JVM Diagnostics Guide.
另一个要知道的问题是Linux上的线程浮点堆栈限制,正如JVMDiagnosticsGuide的“FloatingStacksLimitation”小节中所讨论的那样。
In multiple-threaded dispatching model, the thread fetching the events from the queue launches another thread called task thread, and hand the event over to it for processing.
在多线程分发模型中,从队列中获取事件的线程启动另一个被称作任务线程的线程,并把事件交给它处理。
In multiple-threaded dispatching model, the thread fetching the events from the queue launches another thread called task thread, and hand the event over to it for processing.
在多线程分发模型中,从队列中获取事件的线程启动另一个被称作任务线程的线程,并把事件交给它处理。
应用推荐