Bird
Raised Fist0

In a system where a long CPU-bound process arrives first, followed by many short I/O-bound processes, which scheduling approach better mitigates the convoy effect?

hard⚖️ Approach Comparison Q8 of Q15
Operating Systems - FCFS Scheduling - Convoy Effect & Waiting Time
In a system where a long CPU-bound process arrives first, followed by many short I/O-bound processes, which scheduling approach better mitigates the convoy effect?
AFCFS, because it ensures fairness by processing in arrival order.
BRound Robin, as it allows short processes to get CPU time in slices, reducing wait.
CNon-preemptive Priority Scheduling, prioritizing long processes first.
DFCFS with process aging to increase priority of long-waiting processes.
Step-by-Step Solution
Solution:
  1. Step 1: Understand convoy effect mitigation

    Convoy effect delays short processes behind long ones in FCFS.
  2. Step 2: Analyze options

    A: FCFS does not mitigate convoy effect.
    B: Prioritizing long processes worsens convoy effect.
    C: Round Robin preempts long processes, giving short ones CPU slices early.
    D: FCFS with aging still processes in arrival order, less effective than preemption.
  3. Final Answer:

    Option B -> Option B
  4. Quick Check:

    Round Robin reduces convoy effect via time slicing [OK]
Quick Trick: Preemption in Round Robin reduces convoy effect [OK]
Common Mistakes:
MISTAKES
  • Assuming FCFS is always fair
  • Believing priority scheduling favors short processes
  • Thinking aging alone solves convoy effect in FCFS
Trap Explanation:
PITFALL
  • Candidates often overlook preemption's role in reducing convoy effect, wrongly favoring FCFS fairness.
Interviewer Note:
CONTEXT
  • Tests ability to apply scheduling concepts to edge cases and trade-offs.
Master "FCFS Scheduling - Convoy Effect & Waiting Time" 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