////////////////////////////////////////////////////////////////////////// // // // CSE 428 - SPRING 2001 // // // // Solution of Assignment #4 // // // // File Scheduler.java // // // ////////////////////////////////////////////////////////////////////////// // Definition of the scheduler class Scheduler { private int numberOfTasks; private int next; // Next task that can start private boolean[] A; // semaphores public Scheduler(int numberOfTasks) { this.numberOfTasks = numberOfTasks; next = 0; A = new boolean[numberOfTasks]; for (int n=0; n