Bird
Raised Fist0

In a system where processes have highly variable burst times and frequent arrivals, which scheduling approach better balances starvation risk and average waiting time?

hard⚖️ Approach Comparison Q8 of Q15
Operating Systems - Shortest Job First (SJF) - Preemptive vs Non-Preemptive
In a system where processes have highly variable burst times and frequent arrivals, which scheduling approach better balances starvation risk and average waiting time?
AStrict preemptive SJF, as it always picks the shortest job immediately
BNon-preemptive SJF, to avoid overhead and ensure process completion
CA hybrid approach that limits preemption frequency to reduce starvation
DFirst-Come, First-Served (FCFS) to guarantee fairness
Step-by-Step Solution
Solution:
  1. Step 1: Evaluate strict preemptive SJF risks

    It risks starvation due to frequent preemption of longer jobs.
  2. Step 2: Consider non-preemptive SJF trade-offs

    Reduces overhead but can increase average waiting time for short jobs.
  3. Step 3: Assess hybrid approach benefits

    Limits preemption to balance overhead, starvation, and waiting time.
  4. Final Answer:

    Option C -> Option C
  5. Quick Check:

    Hybrid approach balances trade-offs better in variable workloads [OK]
Quick Trick: Hybrid limits preemption to balance trade-offs [OK]
Common Mistakes:
MISTAKES
  • Choosing strict preemptive SJF ignoring starvation
  • Preferring non-preemptive despite high waiting times
  • Assuming FCFS is always fair and efficient
Trap Explanation:
PITFALL
  • Candidates often pick extremes without considering hybrid trade-offs in complex scenarios.
Interviewer Note:
CONTEXT
  • Probes ability to apply scheduling concepts to real-world variability and trade-offs.
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