Bird
Raised Fist0

Identify the misconception in this statement: "Preemptive SJF scheduling always prevents starvation because it picks the shortest job available at any time."

medium🐞 Bug Identification Q7 of Q15
Operating Systems - Shortest Job First (SJF) - Preemptive vs Non-Preemptive
Identify the misconception in this statement: "Preemptive SJF scheduling always prevents starvation because it picks the shortest job available at any time."
APreemptive SJF guarantees fairness by design
BPreemptive SJF does not consider arrival times, so starvation is impossible
CStarvation is only a problem in non-preemptive scheduling
DStarvation can still occur if short jobs keep arriving, indefinitely delaying longer jobs
Step-by-Step Solution
Solution:
  1. Step 1: Understand starvation in preemptive SJF

    Continuous arrival of shorter jobs can indefinitely delay longer jobs, causing starvation.
  2. Step 2: Analyze incorrect claims

    Preemptive SJF does consider arrival times; starvation can occur; fairness is not guaranteed.
  3. Final Answer:

    Option D -> Option D
  4. Quick Check:

    Starvation possible if short jobs keep arriving [OK]
Quick Trick: Starvation can occur despite preemption [OK]
Common Mistakes:
MISTAKES
  • Assuming preemptive SJF eliminates starvation
  • Believing arrival times are ignored
  • Thinking fairness is guaranteed
Trap Explanation:
PITFALL
  • Candidates often overestimate preemptive SJF's fairness and ignore starvation risks.
Interviewer Note:
CONTEXT
  • Tests awareness of starvation and fairness limitations in scheduling.
Master "Shortest Job First (SJF) - Preemptive vs Non-Preemptive" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes