Bird
Raised Fist0

Given processes arriving at different times with burst times 4, 3, and 2 units, how does non-preemptive SJF schedule them if the second process arrives after the first starts?

medium🧠🧾 Concept Trace Q4 of Q15
Operating Systems - Shortest Job First (SJF) - Preemptive vs Non-Preemptive
Given processes arriving at different times with burst times 4, 3, and 2 units, how does non-preemptive SJF schedule them if the second process arrives after the first starts?
AThe first process runs to completion before the second starts
BThe second process preempts the first immediately upon arrival
CThe CPU remains idle until the shortest job arrives
DProcesses are scheduled in order of arrival regardless of burst time
Step-by-Step Solution
Solution:
  1. Step 1: Understand non-preemptive scheduling behavior

    Once a process starts, it runs to completion without interruption.
  2. Step 2: Apply to scenario with staggered arrivals

    First process runs fully; second process waits even if shorter.
  3. Final Answer:

    Option A -> Option A
  4. Quick Check:

    Non-preemptive SJF does not allow preemption after start [OK]
Quick Trick: Non-preemptive means no interruption after start [OK]
Common Mistakes:
MISTAKES
  • Thinking second process preempts first
  • Assuming CPU idles unnecessarily
  • Believing scheduling ignores burst time
Trap Explanation:
PITFALL
  • Candidates confuse preemptive and non-preemptive rules, expecting preemption where none occurs.
Interviewer Note:
CONTEXT
  • Checks grasp of non-preemptive scheduling with staggered arrivals.
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