Difference Between Short-Term, Medium Term, And Long-Term Schedulers
Basis | Short-Term Scheduler | Medium-term Scheduler | Long-Term Scheduler |
---|---|---|---|
1. Alternate Name | It is also called a CPU scheduler. | It is also called a process swapping scheduler. | It is also called a job scheduler. |
2. Degree in programming | It provides lesser control over the degree of multiprogramming. | It reduces the control over the degree of multiprogramming. | It controls the degree of multiprogramming. |
3. Speed | The speed of the short-term scheduler is very fast. |
Speed of medium scheduler between the short-term and long-term scheduler | The speed of a long-term term scheduler is more than medium-term scheduler. |
4. Usage in time- sharing system sharing system | It is minimal in the time-sharing system. | It is a part of the time-sharing system. | It is almost absent or minimal in a sharing system. |
5. Purpose | It selects the processes from among the process that is ready to execute. | It can reintroduce the from among the process into memory that executes and its execution can be continued. |
It selects processes from the pool and loads them into memory for execution. |
6. Process state | Process state is ready to running | Process state is not present | Process state is new to ready. |
7. Selection of process | Select a new process for a CPU quite frequently. | Select that process, which is currently not need to load fully on RAM, so it swap it into swap partition. | Select a good process , mix of I/O bound and CPU bound. |
Difference between Short-Term, Medium Term, and Long-Term Scheduler
Process scheduling is an important activity done by the process manager to remove the process from the CPU and schedule the next process, the process removal and dispatch are based on multiple factors like process completion, priority, I/O requirement, etc. Process scheduling plays an important role in Multiprogramming operating systems.
There are mainly three types of schedulers in operating systems, which are: Short-term schedulers, medium-term schedulers, and long-term schedulers. In this article, we are going to discuss about difference between these schedulers.