Code Example: Scheduler continued
runningThread =
(Thread)waitingThreads.get(next);
synchronized (runningThread) {
runningThread.notifyAll();
} // synchronized (runningThread)
} // if waitCount
} // done()
} // class Scheduler
Previous slide
Next slide
Back to first slide
View graphic version