Practice mode Operating Systems

When does non-preemptive scheduling make a scheduling decision?

Correct answer D. Only when the running process terminates or switches to the waiting state

Explanation

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.