This content originally appeared on DEV Community and was authored by PAVAN KUMAR RV
Processor Management in OS
Processor Management (or CPU Scheduling) decides which process uses the CPU and when, ensuring smooth and fair execution.
Types of CPU Scheduling
Preemptive Scheduling –
OS can interrupt a running process to give CPU to another (higher priority or ready) process.
Example: Round Robin, SRTF
Non-Preemptive Scheduling –
Once a process gets CPU, it runs till completion or waits voluntarily.
Example: FCFS, SJF
Goal: Maximize CPU usage
, reduce waiting time
, and keep the system responsive
This content originally appeared on DEV Community and was authored by PAVAN KUMAR RV