Open In App

Short Term Scheduler in Operating System

Pre-requisites: Process Schedulers in Operating System

The operating system’s short-term scheduler, commonly referred to as a CPU scheduler, controls how the central processing unit (CPU) is allotted to processes. The short-term scheduler’s major objective is to make sure that the CPU is constantly utilized effectively and efficiently.



The short-term scheduler operates by continuously keeping track of the status of all the system’s processes. The scheduler chooses a process from the ready queue when it is prepared to run and allows the CPU to do it. The process then continues to operate until it either completes its work or runs into an I/O activity that blocks it.

The short-term scheduler can employ a variety of scheduling methods, each of which has advantages and disadvantages of its own. Several well-liked algorithms include:



The system-specific needs determine the scheduling algorithm be used. A batch system might employ an SJF algorithm to reduce the overall completion time of all activities, whereas a real-time system might utilize a priority scheduler to guarantee that key tasks are executed promptly.

The short-term scheduler controls how effectively and efficiently the CPU is used, which is essential for the system’s overall performance. The short-term scheduler can help to reduce process waiting times and maximize CPU use with the right scheduling algorithm and suitable time quantum.

Functions

The central processing unit (CPU) allocation to processes is controlled by the short-term scheduler, also referred to as the CPU scheduler. The short-term scheduler specifically carries out the following duties:

 

Overall, the short-term scheduler plays a vital role in the overall performance of the system by ensuring that the CPU is being used effectively and efficiently. It makes decisions on which process to execute next, and how much time to allocate to each process, to minimize waiting time for processes and optimize the utilization of the CPU.

For more details please read the article Difference between Short-Term, Medium-Term, and Long-Term Scheduler. 

Article Tags :