What is the difference between Preemptive and Non-Preemptive Scheduling?
In non-preemptive scheduling, once the CPU is allocated to a process, the
process holds (retains) the CPU until it switches from running state to waiting
state, or running state to ready state, or waiting state to ready state, or it
terminates.
In Preemptive scheduling, a process is released from the CPU by the operating
system. The scheduler may suspend the execution of a process before it is
blocked or terminated, in order to allocate the CPU to another process.
|