CS FundamentalsModerateTCS NQT · Infosys pattern

Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (times in ms). Under FCFS scheduling, what is the average waiting time?

  1. A. 8.75 ms
  2. B. 4.00 ms
  3. C. 4.75 ms
  4. D. 5.25 ms

Correct answer: C. 4.75 ms

Completion: P1 = 7, P2 = 11, P3 = 12, P4 = 16. Waiting = completion − arrival − burst = 0, 5, 7, 7, so the average is 19/4 = 4.75 ms. 8.75 ms is the average turnaround time, not waiting time.

More Operating Systems questions

Exams that ask this topic