This is very important when you need to notify Managers about all the work that is being done by the company.
当你需要向经理层报告所有的工作完成时,这一点非常重要。
Similarly, when a notify() is done, the thread from the front of the highest-priority queue of waiters is unblocked from its wait.
类似地,完成 notify() 以后,等待者的最高优先级队列前端的线程从等待中解除阻塞。
Additionally, when the job is done, you can have it make a call back to notify the caller that the job is done, so additional trigger or programming flow could be continued.
此外,当工作完成,你可以打电话回通知调用者,工作完成,因此额外的触发或编程可以继续流动。
应用推荐