GATE CS 2011 · Question 35 · Operating System · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the following table of arrival time and burst time for three processes P0, P1 and P2.
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?

ProcessArrival timeBurst Time
P00 ms9 ms
P11 ms4 ms
P22 ms9 ms
  1. (A) 5.0 ms
  2. (B) 4.33 ms
  3. (C) 6.33 ms
  4. (D) 7.33 ms
Answer

Answer (A)

Answer from the official GATE CS 2011 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes