类似地,完成 notify() 以后,等待者的最高优先级队列前端的线程从等待中解除阻塞。
Similarly, when a notify() is done, the thread from the front of the highest-priority queue of waiters is unblocked from its wait.
add方法向队列中添加一个电子邮件,这个方法由前端使用。
The add method adds an E-mail to the queue and is meant to be used by the front end.
释放锁以后,系统从争用者的最高优先级队列的前端选择线程,以便试图锁定对象。
When a lock is released, the system chooses the thread from the front of the highest-priority queue of contenders to try to lock the object.
应用推荐