Process | Arrival Time | Burst Time |
---|---|---|
P1 | 0 | 8 |
P2 | 1 | 4 |
P3 | 2 | 9 |
P4 | 3 | 5 |
CPU QUEUE At time 0, P1/8 arrives, it is the only process so its run is started. P1/8 At time 1, P2/4 arrives the burst time of P2 is shorter than P1 so P2 is run and P1 is placed in the queue P2/4 P1/7 At time 2, P3/9 arrives P3 is placed at the end of the queue P2/3 P1/7 P3/9 At time 3, P4/5 arrives P4/5 moves to the front of the queue P2/2 P4/5 P1/7 P3/9
Process | Arrival | Burst Time |
---|---|---|
P1 | 0 | 12 |
P2 | 1 | 7 |
P3 | 2 | 15 |
P4 | 3 | 6 |