Preemptive vs Non-Preemptive Scheduling: Difference between Preemptive and Non-Preemptive Scheduling

What is Preemptive Scheduling?

Preemptive Scheduling is a technique where the assignments are allotted with their preferences or priorities. In the case of preemptive scheduling, it is crucial to execute a higher preference assignment even if the task with a lower priority is still in the running stage. When it comes to executing the higher priority job, the task with lower priority waits for some time and continues its executing process when the first priority job gets completed.

What is Non-Preemptive Scheduling?

Non-preemptive Scheduling is a CPU scheduling method in which a procedure takes the resource, and holds it till it gets terminated or changes to the waiting condition.

Difference between Preemptive and Non-Preemptive Scheduling

S.No.

Preemptive Scheduling

Non-Preemptive Scheduling

1

In preemptive scheduling, the bits of help or resources are allotted to a procedure for a fixed time.

In non-preemptive scheduling, once the bits of help or resources are allotted to a procedure, the process carries it until it satisfies or shifts to the waiting state.

2

Here, interruption can occur between the processes.

Here, the process cannot be interrupted.

4

It includes overheads of organising the procedures.

It does not include overheads.

5

It is adaptable in nature.

It is not flexible in nature.

6

It is cost oriented.

Non-preemptive scheduling is not cost oriented.

7

CPU utilisation is high here.

CPU utilisation is low here.

Keep learning and stay tuned to get the latest updates on GATE along with GATE Preparation Books & GATE Answer Key and more.

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*