edited by
987 views
5 votes
5 votes

Consider four processes with a burst time of $10, 20, 30, 40$ all process arrived at time $0$. Each process spends first $10$% of its execution time doing $i/0$, next $40$% time doing CPU operations, next $20$% time doing $I/0$ and the last $30$% time doing CPU operations. The system uses shortest remaining time next algorithm for scheduling. Calculate the completion time of $P3$?

edited by

1 Answer

Best answer
11 votes
11 votes

p3 completes at 49

 

  Arrival Burst 10% IO 40%CPU 20%IO 30%CPU
P1 0 10 1 4 2 3
P2 0 20 2 8 4 6
P3 0 30 3 12 6 9
P4 0 40 4 16 8 12



Gant chart

0--- no process--- -1--P1---5---P2---7---P1---10---P2----16----P3----20----P2----26-----P3----34----P4----40----P3----49----P4---59-----no process----67----P4---79

selected by