However, it is not always convenient to wake up all sleeping processes in a wait queue.
然而,要唤醒等待队列中所有睡眠的进程有时并不方便。
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清除所有任务和实现优先级队列,这样您的重要任务就不需要在例程作业后等待了。
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 补丁中实现了一个更小的队列,通过哈希队列来找到正确的等待队列。
应用推荐