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

2017

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

  1. A.

    Dispatcher

  2. B.

    Interrupt

  3. C.

    Schedular

  4. D.

    Threading

Attempted by 1057 students.

Show answer & explanation

Correct answer: A

Answer: The dispatcher is the module that gives control of the CPU to the process selected by the short-term scheduler.

Key responsibilities of the dispatcher:

  • Perform the context switch: save the state of the currently running process (CPU registers, program counter) and restore the state of the selected process.

  • Load CPU registers and program counter for the selected process and transfer control to its next instruction.

  • Set processor mode and update memory mapping or other low-level state as required before resuming the process.

Why the other choices are not correct:

  • Interrupts are signals that notify the CPU of events and may cause the OS to run, but they do not themselves perform the context switch needed to hand control to the selected process.

  • The short-term scheduler decides which process should run next but does not carry out the low-level operations (register restoration, program counter update) required to transfer CPU control.

  • Threading is a programming and execution model for multiple threads within a process; it is not the module responsible for performing the CPU handoff between processes.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor