3.3.1. Parts of the SchedulerΒΆ

The main functional components of the scheduler are:

  1. Enqueuer

    It adds a pointer or reference to the process’ Process Control Block (PCB) as per the desired data structure of the ready queue, which is usually a collection of linked lists.

  2. Dispatcher

    The part that implements the scheduling algorithm to pick the next process to run.

  3. Context Switcher

    Loads the selected process onto the CPU as the running process.

../../_images/scheduler_parts.png