Process Id
Arrival time
Burst time
P1
3
1
P2
1
4
P3
4
2
P4
0
6
P5
2
3
If the CPU scheduling policy is Shortest Job First (SJF) preemptive, draw Gantt chart, calculate the average waiting time and average turnaround time.
Arrival time
Burst time
P1
3
1
P2
1
4
P3
4
2
P4
0
6
P5
2
3
If the CPU scheduling policy is Shortest Job First (SJF) preemptive, draw Gantt chart, calculate the average waiting time and average turnaround time.