There are three types of process scheduler.
1. Long Term or job scheduler It bring the new process to the ‘Ready State’. It controls Degree of Multi-programming, i.e., number of process present in ready state at any point of time.
2. Short term or CPU scheduler: It is responsible for selecting one process from ready state for scheduling it on the running state. Note: Short term scheduler only selects the process to schedule it doesn’t load the process on running.
Dispatcher is responsible for loading the selected process by Short Term scheduler on the CPU (Ready to Running State) Context switching is done by dispatcher only. A dispatcher does following:
1) Switching context.
2) Switching to user mode.
3) Jumping to the proper location in the newly loaded program.
3. Medium term scheduler It is responsible for suspending and resuming the process. It mainly does swapping (moving processes from main memory to disk and vice versa).
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
- Operating Systems | States of a process
- Operating System | Difference between dispatcher and scheduler
- Measure the time spent in context switch?
- Operating System | Process Table and Process Control Block (PCB)
- What happens when we turn on computer?
- Convoy Effect in Operating Systems
- Program for FCFS Scheduling | Set 2 (Processes with different arrival times)
- Program for Round Robin scheduling | Set 1
- Program for Shortest Job First (or SJF) scheduling | Set 1 (Non- preemptive)
- Program for FCFS Scheduling | Set 1
- Last Minute Notes – Operating Systems
- Operating System | Process Synchronization | Introduction
- Operating System | Process Management | CPU Scheduling
- Operating System | Process Management | Introduction
- Commonly Asked Operating Systems Interview Questions | Set 1