Gate2020 cs Q58

0. Consider the following set of processes, assumed to have arrived at time Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order P1, P2, P3, P4.
ProcessesP1P2P3P4
Burst time (in ms)8724
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off t0 2 decimal places) is ……………...

  • Option : A
  • Explanation :
    Average turnaround time
    P1 = 21, P2 = 13, P3 = 2, P4 = 6
    Avg = (21+13+2+6)/4 = 42/4 = 10.5
    Gate2020 cs
    Average turnaround time
    P1 = 18, P2 = 21, P3 = 10, P4 = 14
    Avg = (18+21+10+14)/4 = 63/4 = 15.75
    Difference = 15.75 – 10.5 = 5.25
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *