What is CPU scheduling algorithm ?
A CPU scheduling algorithm is a method used by the operating system to determine which process gets to use the CPU (processor) and for how long. When multiple processes are ready to run, the scheduler decides the order based on a particular algorithm.
Because a CPU can run only one process at a time (in a single-core system), while multiple processes may be ready to execute. Efficient scheduling improves:
- CPU utilization
- Throughput
- Response time
- Fairness
