Question: 1. Processor Manager Description: You will develop a processor manager for a single-processor, multi-programming system. The processor manager will include the tasks of the job




1. Processor Manager Description: You will develop a processor manager for a single-processor, multi-programming system. The processor manager will include the tasks of the job scheduler and the process scheduler. The job scheduler will use a first-in, first out policy. The process scheduler willuse the round-robin algorithm with a quantum of 5ms. Define the following structures in your code: 1. Process Control Block You can define a class or a struct for the PCB. The PCB should have fields for pid, state arrival time, completion time, total burst, burst so far, priority. class PCB public: int pid; string state; // waiting, running, complete int arrival Time; // time it arrived at the Ready Quue int startTime; // this will be the clock time (in ms) int completionTime; int totalBurst; int burstSoFar; // increment each time process gets am on the cpu int priority }; Feel free to define the class with private members and public getters/setters if you wish (that really is the correct way to do it) 2. Job Queue vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
