CS-151 Labs


Lab 9. Scheduling tasks. Priority queue


This lab is optional (for extra-credit).

You should not submit this to blackboard, but intead need to demo it to your instructor no later than Wednesday, December 14

In this lab, you will write a PriorityQueue (Java’s version of a heap) and use it with different comparators to simulate a variety of operating system scheduling algorithms.

After this lab, you should be able to:

You can get the Lab 9 starter code here.

We are providing you with the following files, which you will not have to change:

You will need to modify the following files:

And you will need to create and implement the following:

We are also providing you with the following test files: