Which module gives control of the CPU to the process selected by the…

2021

Which module gives control of the CPU to the process selected by the short-term scheduler?

Answer: B. DispatcherCONCEPTProcess selection and execution transfer are separate operating-system functions. A short-term scheduler chooses a ready process according to policy,…

  1. A.

    Interrupt

  2. B.

    Dispatcher

  3. C.

    Scheduler

  4. D.

    None of the above

Attempted by 57 students.

Show answer & explanation

Correct answer: B

CONCEPT

Process selection and execution transfer are separate operating-system functions. A short-term scheduler chooses a ready process according to policy, while a dispatch mechanism applies that choice through a context switch and execution-state restoration.

APPLICATION

Here, the process has already been selected by the short-term scheduler. The remaining work is to switch the processor context, enter the required mode, and resume the selected process from its saved instruction address. Those duties belong to the dispatcher. Therefore, the required module is the dispatcher.

CROSS-CHECK AND CONTRAST

  • Interrupt: a signal that redirects execution to an interrupt-service routine so an event can be handled.

  • Dispatcher: the component that performs the context switch, mode transition, and restoration of the execution point.

  • Scheduler: the decision-making component that chooses which ready process should run next.

  • None of the above: a residual-set claim, not the name of an operating-system component.

The two-stage check is therefore: the scheduler selects; the dispatcher carries out the handoff. This confirms Dispatcher as the result.

Explore the full course: Operating System

Loading lesson…