Pointers into the kernel's wait queue.
指针到内核的等待队列。
However, it is not always convenient to wake up all sleeping processes in a wait queue.
然而,要唤醒等待队列中所有睡眠的进程有时并不方便。
Since this wait queue is used sparsely, a smaller wait queue implementation using hash queues to find the correct wait queue has been implemented in the rmap patch.
因为这个等待队列极少用到,所以在rmap补丁中实现了一个更小的队列,通过哈希队列来找到正确的等待队列。
For instance, if two or more processes are waiting for exclusive access to some resource to be released, it makes sense to wake up just one process in the wait queue.
例如,如果两个或多个进程正在等待互斥访问某一要释放的资源,仅唤醒等待队列中一个进程才有意义。
Don't queue tasks that wait synchronously for results from other tasks.
不要对那些同步等待其它任务结果的任务排队。
NO one had to wait too long in the queue when Spring Festival rail tickets went on sale yesterday, but many routes sold out quickly.
昨天是春运火车票开售的第一天,买票的人并未花太长时间排队等候,但不少车次的票很快就售完了。
Hence, to achieve maximum possible throughput, all components/resources in the queue must be optimally tuned to reduce (or eliminate, in many cases) the wait time.
因此,要获得最大可能的吞吐量,就必须尽快调整队列中的所有组件/资源,以减少(在许多情况下,是消除)等待时间。
In a bounded blocking queue, the writer thread also needs to wait if the queue is full.
对于有大小限制的阻塞队列,如果队列满了,写线程也需要等待。
In a blocking queue, only the reader thread needs to wait when there is no data in the queue.
对于阻塞队列,只有读线程需要在队列中没有数据时等待。
For an average of RMB 20 an hour, li or one of his runners will take a queue number and physically wait in line on your behalf.
一般一小时给个20元,李启才或者他的跑腿者,就会帮你领号,并替你排队。
This gem lets you fire off jobs in one line of code and implements a priority queue so that your important jobs don't wait behind routine jobs.
您可以在一行代码中使用这个gem清除所有任务和实现优先级队列,这样您的重要任务就不需要在例程作业后等待了。
Meanwhile, the only way to get in now is to queue for one of the 500 tickets being held back for sale each morning. The security checks are elaborate, but the wait is well worth it.
现在要进去参观的唯一方式就是去排队买票,每天早上美术馆只出售500张票。
However, the Elapsed Duration, the time including the wait in the queue before the task, is 11.5 hours!
但是,包括在执行任务前排队等待时间的Elapsed Duration却是11.5小时!
Similarly, when a notify() is done, the thread from the front of the highest-priority queue of waiters is unblocked from its wait.
类似地,完成notify() 以后,等待者的最高优先级队列前端的线程从等待中解除阻塞。
If you wait for some time before running the lpstat command, you might not see the job, since it disappears from the queue once it is printed.
如果在运行lpstat命令前耽搁了一些时间,那么您可能看不到该作业,因为它一旦被打印就从队列中消失了。
What we usually want is a work queue combined with a fixed group of worker threads, which USES wait and notify to signal waiting threads that new work has arrived.
我们通常想要的是同一组固定的工作线程相结合的工作队列,它使用wait和notify来通知等待线程新的工作已经到达了。
At the main Shanghai store of Louis Vuitton there is a queue to get in at weekends - young women wait patiently in the rope line, as if they were trying to get into the hottest new LA club.
在上海的路易·威登店,周末等待进店消费的年轻顾客耐心排起了队。
The producer adding an element to the queue will wait for a consumer in another thread.
在队列中加入一个元素的生产者会等待另一个线程的消费者。
Another option involves dispatching Captain Jack Sparrow or Goofy or one of their pals to the queue to entertain people as they wait.
另一个方法就是派杰克斯派洛船长,古飞猫或它们的一个伙伴到排队等候的人群中取悦他们。
The first thread locks the mutex and appends data to the queue, while the other threads wait for their turn.
第一个线程锁住互斥并把数据添加到队列中,而其他线程等待轮到它们操作。
The requester can choose to enqueue a request but not wait for processing to complete, then periodically check for a response in the response queue while it performs other work.
请求者可以选择为请求排队但是不等待处理的完成。当执行其他工作时,要定时检查响应队列中的响应。
With many blocked worker threads, new work can't be executed until the in-flight transactions are completed, which means this new work must queue and wait for resources to become available.
对于存在很多阻塞工作线程的情况,在完成正在处理的事务之前,新工作将无法执行,而这意味着新工作必须排队,等待有可用资源时处理。
The process of submitting many FTP jobs to a queue does save time because you do not have to wait for the previous job to complete before committing to the next job.
把许多FTP作业提交给队列可以节省时间,因为不需要等待前一个作业完成之后再提交下一个作业。
The client code would either poll the output queue for the response or wait for some kind of call-back notification when the response message has been delivered.
客户机代码将轮询输出队列以获得响应,或等待响应消息交付时的回调通知。
More importantly, we do not need to wait in the queue.
更重要的是,我们并不需要在队列中等待。
Although the functionality of the blocking queue is not compromised with this choice, use of pthread_cond_signal could potentially lead to unacceptable wait times for some reader threads.
尽管使用pthread_cond_signal不会损害阻塞队列的功能,但是这可能会导致某些读线程的等待时间过长。
Two instances of Step 1 are active, with the other incoming tokens having to wait in the queue in front of the task.
Step1的两个实例是活动的,其他传入令牌必须在该任务前面的队列中等待。
In England they call this line a queue. You must always wait in a queue.
在英国人们把这样的行列叫队。等车时你总得排队。
The length of time Brits wait varies with the type of queue they are in but it averages between seven minutes and 18 seconds.
英国人的等待时间长度和他们等待队伍类型而变化,但平均时间是7分18秒。
John joined the long queue and eventually after a lengthy wait, reached the revenue table.
约翰加入到了那长长的队列里,等了很久以后,终于来到付款台前。
应用推荐