When does non-preemptive scheduling make a scheduling decision?
Correct answer D. Only when the running process terminates or switches to the waiting state
Under non-preemptive (cooperative) scheduling, once a process has the CPU it keeps it until it finishes or blocks, for example for I/O. Taking the CPU away on a timer interrupt or when a more important process arrives is preemption. Preemptive scheduling gives better responsiveness but requires care with shared kernel data that could be interrupted mid-update.
Answer checked How we write and check questions
Discussion