Prerequisite – Process Schedulers
1. Short-Term Scheduler :
Short term scheduler is also known as CPU scheduler. Its main objective is to boost the system performance according to certain set criteria. Short term scheduler helps to select the group of processes that are ready to execute and allocate CPU to each one of them. Unlike Middle term scheduler, it executes more frequently i.e within a few seconds. Short term scheduler has less control over DOM (Degree of Multi-programming).
2. Middle-Term Scheduler :
Middle term scheduler is also known as the Swapping scheduler. Its main objective is to swap out the suspended processes from the main memory. If a running process make I/O request it becomes suspended. A suspended process will not show any progress towards completion so it should be moved to secondary storage, hence providing space for new processes. Unlike Short term scheduler, it’s execution is not quite frequent. Middle term scheduler reduced the DOM (Degree of Multi-programming).
Difference between Short-Term and Medium-Term Scheduler :
|S.No.||SHORT-TERM SCHEDULER||MIDDLE-TERM SCHEDULER|
|1.||Short-Term scheduler is also known as CPU Scheduler.||Middle-Term scheduler is also known as Swapping Scheduler.|
|2.||Speed of Short-Term scheduler is very fast as compared to middle-Term scheduler.||Its speed is less than Short-Term scheduler.|
|3.||It provides less control over Degree of programming.||It reduces the Degree of Programming.|
|4.||Its presence in Time sharing system is very minimal.||Middle-term scheduler is a part of Time sharing system.|
|5.||In short-term scheduler, there occurs transition of process from ready to executing state.||In middle-term scheduler, no process transition state occurs.|
|6.||Its function is to selects those processes which are ready to execute.||Its function is to reintroduce process back in the memory.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Completely fair Scheduler (CFS) and Brain Fuck Scheduler (BFS)
- Difference between dispatcher and scheduler
- Difference between Long-Term and Short-Term Scheduler
- Difference between Long-Term and Medium-Term Scheduler
- Process Scheduler : Job and Process Status
- Process Scheduler : PCBs and Queueing
- Generalized Real-time Task Scheduler
- Deadline scheduler in Operating System
- Difference and Similarities between PHP and C
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference between ++*p, *p++ and *++p
- Difference Between DOS and Windows
- Difference between User Level thread and Kernel Level thread
- What’s difference between The Internet and The Web ?
- Difference between Priority Inversion and Priority Inheritance
- What’s difference between Linux and Android ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.