Code Example: Scheduler continued
synchronized (thisThread) {
while (thisThread != runningThread) {
thisThread.wait();
} // while
} // synchronized (thisThread)
Previous slide
Next slide
Back to first slide
View graphic version