All Exams Test series for 1 year @ ₹349 only
Question

Which of the following scheduler/schedulers is/are also called CPU scheduler ?
(A). Short Term Scheduler
(B). Long Term Scheduler
(C). Medium Term Scheduler
(D). Asymmetric Scheduler
Choose the correct answer from the options given below:

The correct answer is
(A) only

Understanding Operating System Schedulers

Operating systems use schedulers to manage the execution of processes. Different types of schedulers handle different aspects of process management, deciding which process runs next and when.

Role of the Short-Term Scheduler

The Short-Term Scheduler, often called the CPU Scheduler, is responsible for selecting a process from the processes that are ready to run (in the ready queue) and allocating the CPU to it. It makes this decision very frequently, typically every few milliseconds, whenever the CPU becomes available (e.g., when a process terminates, a process block for I/O, or a new process enters the ready state).

  • Its primary goal is to keep the CPU as busy as possible.
  • It determines which process gets the CPU next.

Other Scheduler Types

Let's look at the other schedulers mentioned:

  • Long-Term Scheduler (Job Scheduler): This scheduler runs less frequently. It selects processes from a large pool of jobs (often stored on disk) and loads them into the ready queue. Its main role is to control the degree of multiprogramming (the number of processes in the memory). It doesn't directly manage immediate CPU allocation.
  • Medium-Term Scheduler: This scheduler is often introduced to improve the process mix or reduce the degree of multiprogramming. It can take processes out of the system (by swapping them to disk) and later bring them back into memory (swapping them back in). It sits between the short-term and long-term schedulers in terms of frequency and scope. It doesn't solely focus on immediate CPU allocation like the CPU scheduler.
  • Asymmetric Scheduler: This term typically refers to scheduling strategies in multiprocessor systems, particularly asymmetric multiprocessing (AMP), where different processors might have different roles or scheduling policies. It's not a fundamental classification of the primary schedulers responsible for allocating CPU time slices to processes within a single system context like the short-term scheduler. It's related to the hardware architecture rather than the core process scheduling function.

Identifying the CPU Scheduler

Based on their functions, only the Short-Term Scheduler directly controls which process gets the CPU at any given moment. The Long-Term Scheduler manages job entry, and the Medium-Term Scheduler manages swapping. The Asymmetric Scheduler relates to multiprocessor configurations. Therefore, the scheduler commonly referred to as the CPU Scheduler is the Short-Term Scheduler.

Was this answer helpful?

Important Questions from Miscellaneous

  1. A situation where two or more processes are blocked, waiting for resources held by each other is called:
  2. External fragmentation occurs ________.
  3. Which disk scheduling algorithm looks for the track closest to the current head position?
  4. Which CPU scheduling algorithm prefers the process with the shortest burst time?
  5. Complete the following statement by choosing the correct option.
    For a deadlock to occur, the four conditions namely Mutual Exclusion, Hold and wait, No preemption, circular wait ________
    1. May or may not hold
    2. The circular wait does not implies hold and wait condition
    3. Are completely independent
    4. Must hold simultaneously
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App