In scheduling, there are two main schools of thought: preemptive and nonpreemptive
In scheduling, there are two main schools of thought: preemptive and nonpreemptive.

CPU scheduling:-
CPU scheduling is the process of determining which process should be allocated to the CPU and when. This is done by the operating system, in order to maximize the CPU utilization and throughput, while also trying to ensure fair distribution of the CPU among all processes. Scheduling algorithms are used to decide which process will be allocated the CPU first, and for how long. Scheduling algorithms are typically classified as preemptive or non-preemptive. Preemptive scheduling allows the operating system to take away the CPU from a process before it has finished using it, while non-preemptive scheduling requires the process to finish using the CPU before it can be taken away.
Step by step
Solved in 3 steps









