Comparison of Preemptive and Non-preemptive scheduling
Comparison of Preemptive and Non-preemptive scheduling are done on the basis of basic, interrupt starvation, overheads, flexibility, and cost.
|BASIS||PREEMPTIVE SCHEDULING||NON PREEMPTIVE SCHEDULING|
|Basic||The resources are allocated to a process for a limited time.||Once resources are allocated to a process, the process holds it till it completes its burst time or switches to the waiting state.|
|Interrupt||The process can be interrupted in between.||The process cannot be interrupted until it terminates or switches to the waiting state.|
|Starvation||If a high priority process frequently arrives in the ready queue, the low priority process may starve||If a process with a long burst time is running CPU, then another process with less CPU burst time may starve.|
|Overhead||Preemptive scheduling has overheads of the processes.||Non-preemptive scheduling does not have overheads.|
|Flexibility||Flexibility Preemptive scheduling is flexible.||Non-preemptive scheduling is rigid.|
|Cost||Cost Preemptive scheduling is cost associated.||Non-preemptive scheduling has not cost associative.
You may also like: Scheduling and its Types