The queue when no element, called the empty queue.
队列中没有元素时,称为空队列。
Like many queue algorithms, an empty queue consists of a single dummy node.
像许多队列算法一样,空队列只包含一个假节点。
If there is a slight skewing favoring an empty queue over a full one, the pipe will rarely fill and the reader will more often receive fresh Numbers.
如果有轻微的扭曲支持一个空的队列满的,管道将很少填补和读者经常会收到新的号码。
Children clutching empty bowls form a queue.
抓着空碗的孩子们排成一队。
The thread scheduler must dispatch from the head of the highest-priority queue that is not empty.
线程调度程序必须从非空的最高优先级队列的头部开始调度。
Instead of throwing an exception when the queue is empty, the reader thread now blocks itself on the condition variable.
当队列是空的时候,读线程现在并不抛出异常,而是在条件变量上阻塞自身。
You placed 950 messages to the queue when it was empty.
当队列为空时,您在其中放置了950条消息。
In its simplest mode it ACTS as a thread-safe queue in which consumers are blocked while the queue is empty.
它最简单的使用模式便是作为一个线程安全的队列,并且在队列为空时阻塞消费者。
However, if its queue is empty then it will steal items from another thread's queue.
不过在队列为空时,它就会从其它线程的队列中“窃取”一些元素。
The first reader thread locked the mutex, realized that the queue is empty, and blocked itself on _cond, which implicitly released the mutex.
第一个读线程锁住互斥锁,发现队列是空的,然后在 _cond 上阻塞自身,这会隐式地释放互斥锁。
In the event the thread's task queue is empty, it then tries to steal another task off the tail of another thread's deque.
当线程的任务队列为空,它将尝试从另一个线程的deque的尾部窃取另一个任务。
The second consumer gets the lock (it can proceed because it was notified) and tries to work a task, but now the queue is empty.
第二个consumer获得锁(因为通知了它所以它可以继续向下进行)并试图运行任务,但是现在队列是空的。
In the above example, empty string is used for the output queue library and queue name to indicate that spool files from any output queue are considered for indexing.
在上面的例子中,输出队列库和队列名称使用了空字符串,表明将对所有输出队列中的spool文件进行索引。
One consumer gets the lock, works the task, and leaves the queue empty.
一个consumer获得锁,运行任务,并把队列清空。
Two consumer threads are started, find the queue to be empty, and do wait().
启动了两个consumer线程,发现队列是空的,执行wait()。
A woman holds onto an empty water container as residents queue for supplies at a shop in the coastal town of Mito March 12 2011.
2011年3月12日,日本水户市沿海的镇上,一妇女手持空水盒,在一商店前的居民长队中等待补给。
A woman holds onto an empty water container as residents queue for supplies at a shop in the coastal town of Mito, March 12, 2011.
2011年3月12日,水户的沿海镇内,一妇女手持空水盒,在一商店前的居民长队中等待补给。
Before removing a task from the queue, the work method checks to see if it is empty and if so, waits.
在从队列中删除一个任务之前,work方法进行检查以查看队列是否为空,如果为空则等待。
When the queue is empty, both of these pointers point to the same location.
当队列为空时,这两个指针指向同一位置。
Thread sleep time when the refs queue is empty: the time that each thread sleeps when the refs queue is empty.
线程睡眠时间当裁判队列为空:每个线程的时间睡觉当裁判队列是空的。
The system sends a WM_PAINT message to a window whenever its update region is not empty and there are no other messages in the application queue for that window.
该系统发送一个WM_PAINT消息到一个窗口时,它的更新区域不为空,并在该窗口的消息队列中没有其他消息。
The queue is BlockingCollection which perfectly suits the needs of this module: it blocks the producer thread if the queue is full and blocks the consumer thread when queue is empty.
队列是BlockingCollection,它非常适合这个模块:在队列满时,阻塞生产者线程,当队列空时,阻塞消费者线程。
The queue is BlockingCollection which perfectly suits the needs of this module: it blocks the producer thread if the queue is full and blocks the consumer thread when queue is empty.
队列是BlockingCollection,它非常适合这个模块:在队列满时,阻塞生产者线程,当队列空时,阻塞消费者线程。
应用推荐