How Scheduling Works
The scheduler is responsible for choosing a process from the ready queue. The scheduling algorithm implemented by this module determines how process selection is done.
The scheduler hands the selected process off to the dispatcher which gives the process control of the CPU.