Computer Science EngineeringVery hardISRO SC

Processes (arrival, burst in ms): P1(0, 8), P2(4, 3), P3(2, 4), P4(1, 7). Under preemptive SJF (SRTF), the average waiting time in ms is

  1. A. 8.75
  2. B. 6.5
  3. C. 5.75
  4. D. 7

Correct answer: C. 5.75

Waiting time = completion - arrival - burst. Simulating SRTF millisecond by millisecond gives average 5.75 ms (FCFS would give 8.75).

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic