Which module gives control of the CPU to the process selected by the short-term scheduler?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. Dispatcher
Explanation
The short-term (CPU) scheduler only decides which ready process should run next; a separate module called the dispatcher is the one that actually performs the context switch, loads that process's registers, switches to user mode and jumps to the correct location to hand the CPU over to it. 'Interrupt' refers to hardware or software signals that transfer control to the kernel, not to assigning the CPU to a chosen process, and 'Scheduler' is the component that makes the selection decision rather than executing the switch. 'Threading' is unrelated to this handoff mechanism. Hence the correct module is the dispatcher, option (i).More System Software and Operating System questions
- A fair share scheduler computes the priority of a process based on which of the following? (1) Processor utilization by the individual proc…
- Which of the following CPU scheduling algorithms may cause starvation of a process? (1) First-Come-First-Served (2) Round Robin (3) Priorit…
- A scheduling algorithm assigns a process's priority proportional to how long it has been waiting; every process starts at priority zero (th…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- Consider a system with five processes P0 through P4 and three resource types A, B and C, with 7, 2 and 6 total instances respectively. At t…