注意到在往队列中添加了任务后,线程立刻对 this 锁对象调用 notify() 方法,这个方法会唤醒一个正在 this 锁等待的线程(就是在 getTask() 中位于 this.wait() 的 ...
確定! 回上一頁