Computer Science EngineeringVery hardISRO SC

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

  1. A. 4.75
  2. B. 5
  3. C. 5.5
  4. D. 6

Correct answer: A. 4.75

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

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

Exams that ask this topic