Gate2017 cs Q19

0. Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below:
ProcessArrival timeBurst time
P107
P233
P355
P462



Note: Numerical Type question.

  • Option : C
  • Explanation :

    Turn Around Time
    P1 = 12-0 = 12
    P2 = 6-3 = 3
    P3 = 17-5 = 12
    P4 = 8 - 6 = 2
    Waiting Time
    P1 = 12-7 = 5
    P2 = 3-3 = 0
    P3 = 12-5 = 7
    P4 = 2 - 2 = 0
    Average Waiting time = (7+0+5+0)/4 = 3.0
    Therefore, option C is correct
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 *