Long Term And Short Term Scheduling In Operating System

Explain Long Term Scheduler, Short Term Scheduler In OS, What Is Long Term And Short Term Scheduling In Operating System

In This Topic & Blog Having Any Query Then Post your Comment and Suggestion Below

Long Term Scheduler
• The function of the long tem scheduler is selects the jobs from
the pool of jobs and loaded these jobs into main memory (ready
queue) of the computer ,so the long term scheduler is also
called job scheduler.
• For example consider a computer lab in a college. Assume that
the lab consisting of 30 dummy nodes and a server, these
computer are connected by local area network, out of thirty,
twenty students are trying to execute their jobs, then these
twenty jobs are loaded into a spool disk. The long term
scheduler selects the jobs from the spool disk and loaded these
jobs into a ready queue in the main memory.
• A ready queue is nothing but a queue, it is one type of data
structure, it consisting of two ends one is front and another is
rear. The jobs are loaded into the ready queue through the
front, and the jobs are deleted from the ready queue through
the rear.

Short Term Scheduler

• The function of the short term scheduler is, select a job
from the ready queue and gives the control of the CPU to
that process with the help of ‘dispatcher’ that`s why the
short term scheduler is also said to be CPU scheduler.
The method of selecting a process from the ready
queue(by the short term scheduler) is depending on the
CPU scheduling algorithm.

Labels: