Use a heap to implement a simulator for a process scheduling system. In this system, jobs will
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 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).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Java Software Structures Designing And Using Data Structures
ISBN: 9780133250121
4th Edition
Authors: John Lewis, Joe Chase
Question Posted: