CS FundamentalsHardProduct-company MCQ 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). Compare preemptive and non-preemptive priority scheduling. Which statement is correct?

  1. A. Preemptive gives 4.75 and non-preemptive 5.25
  2. B. Preemptive gives the lower average waiting time, 5.25 vs 5.50
  3. C. Non-preemptive gives the lower average waiting time, 5.25 vs 5.50
  4. D. Both give 5.50

Correct answer: C. Non-preemptive gives the lower average waiting time, 5.25 vs 5.50

Non-preemptive: A 0–5, B 5–8, D 8–14, C 14–22 → waits 0, 4, 12, 5 = 5.25. Preemptive: A 0–1, B 1–4, D 4–10, A 10–14, C 14–22 → waits 9, 0, 12, 1 = 5.5. Preemption helps high-priority jobs but does not always lower the average.

More Operating Systems questions

Exams that ask this topic