A lock release or locknotify operation is analogous to a scheduling dispatch operation in the sense that the thread at the head of the highest-priority queue is acted on.
锁释放或锁notify操作与调度分派操作类似,因为都是对最高优先级队列头部的线程起作用。
2
There is an interaction between notification and locking — to wait or notify on an object, you must hold the lock for that object.