Code Example: Scheduler continued
int waitCount = waitingThreads.size();
if (waitCount <= 0)
runningThread = null;
else if (waitCount == 1) {
runningThread
= (Thread)waitingThreads.get(0);
waitingThreads.remove(0);
Previous slide
Next slide
Back to first slide
View graphic version