Question: Use a heap to implement a simulator for a process scheduling system. In this system, jobs will be read from a file consisting of the
Use a heap to implement a simulator for a process scheduling system. In this system, jobs will be read from a file consisting of the job id (a six character string), the length of the job (an int representing seconds), and the priority of the job (an int where the higher the number, the higher the priority). Each job will also be assigned an arrival number (an int representing the order of its arrival). The simulation should output the job id, the priority, the length of the job, and the completion time (relative to a simulation start time of 0).
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
ANSWER To implement a simulator for a process scheduling system we can use a minheap d... View full answer
Get step-by-step solutions from verified subject matter experts
