Question: 5. Suppose that there are five processes in a system, their service time and arrival time are given below (NOTE THAT THE PROCESSES DO NOT

5. Suppose that there are five processes in a system, their service time and arrival time are given below (NOTE THAT THE PROCESSES DO NOT ARRIVE AT THE SAME TIME) Process P1 P2 P3 P4 P5 Arrival time 0 0 Service time 20 10 Draw the Gantt chart and compute average waiting time for the following methods (remember the wait time is the time difference between when the process arrives and when it first executes). Assume the context switching time is negligible. 1. First-Come-First-Served 2. Shortest-Job-Next (non-preemptive) 3. Shortest-Remaining-Job-Next 4. Round-Robin with time quantum of 2 5. Round-Robin with time quantum of 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
