-
Consider the following set of processes with the arrival times and the CPU burst times given in millisecond
What is the average turn-around time for these proceses with the pre-emptive Shortest Remaining Processing Time First (SRPTF) algorithm?
-
- 5.50
- 5.75
- 6.00
- 6.25
- 5.50
Correct Option: A
Turn around time = (Submit time – finish time) Gantt Chart –
Turn around time for P1 = 12 – 0 = 12
P2 = 4 – 1 = 3
P3 = 8 – 2 = 6
P4 = 5 – 4 = 1
Total = 22
Average turnaround time = 22/4 = 5.5
Hence (a) is correct option