CS FundamentalsHardHCL · Tech Mahindra pattern

Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities: A = 3, B = 1, C = 4, D = 2 (lower number = higher priority). Under PREEMPTIVE priority scheduling, what is the average waiting time?

  1. A. 5.25
  2. B. 5.75
  3. C. 5.50
  4. D. 11.00

Correct answer: C. 5.50

Gantt: A 0–1, B 1–4 (preempts A), D 4–10, A 10–14, C 14–22. Waiting = 9, 0, 12, 1 → 22/4 = 5.5. Non-preemptive priority gives 5.25, FCFS gives 5.75, and 11.00 is the average turnaround time, not waiting time.

More Operating Systems questions

Exams that ask this topic