Test Data

Shortest Job First Scheduling #1

Process Burst Time
P1 5
P2 3
P3 2
P4 4






Waiting Time
P1 = 9
P2 = 2
P3 = 0
P4 = 5



Average Waiting Time = 4.0 ms



#2

Process Burst Time
P1 3.5
P2 2.8
P3 3.6
P4 4
P5 2







Waiting Time
P1 = 4.8
P2 = 2
P3 = 8.3
P4 = 11.9
P5 = 0



Average Waiting Time = 5.4 ms

1