Question: Sample Output: current time 0 job 1 with time 7 psr ps finish time 1 1 7 2 0 0 3 0 0 4 0
You are to write a processor scheduling algorithm. Assume that there are 5 processors and the scheduler is using a FIFO scheduling algorithm. When a processor becomes available, the next process in sequence is scheduled for that processor. ps # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 time 7 483 92587 6 4 7 2 2 7 8 6 8 Print the jobs that are currently running immediately after a process has been scheduled. The output should consist of a) a statement indicating the current time slice, and b) when a new process is scheduled, the process number that is being scheduled with the running time, and a table displaying all of the processes currently running
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
