不管中断何时唤醒这个线程,就使用与实际api和应用程序相同的方法来处理这个中断。
Whenever an interrupt wakes up the thread, process the interrupt the same way the actual API and application process it.
一旦条件满足,还需要一种方法以唤醒因等待满足特定条件而睡眠的线程。
Once the condition is met you need a method to wake up the thread (s) that are waiting for that particular condition to become true.
最终他找到了唤醒全世界的方法。
应用推荐