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补丁中实现了一个更小的队列,通过哈希队列来找到正确的等待队列。
Pointers into the kernel's wait queue.
指针到内核的等待队列。
However, it is not always convenient to wake up all sleeping processes in a wait queue.
然而,要唤醒等待队列中所有睡眠的进程有时并不方便。
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.
例如,如果两个或多个进程正在等待互斥访问某一要释放的资源,仅唤醒等待队列中一个进程才有意义。
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.
例如,如果两个或多个进程正在等待互斥访问某一要释放的资源,仅唤醒等待队列中一个进程才有意义。
应用推荐