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. Dispatcher — CONCEPTProcess selection and execution transfer are separate operating-system functions. A short-term scheduler chooses a ready process according to policy,…
- A.
Interrupt
- B.
Dispatcher
- C.
Scheduler
- 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.