...
UGC NET CS 2008-june-Paper-2
December 5, 2023
Stop-and-Wait-ARQ
December 5, 2023
UGC NET CS 2008-june-Paper-2
December 5, 2023
Stop-and-Wait-ARQ
December 5, 2023

Question 2525 – Process-Threads

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

Correct Answer: A

Question 2 Explanation: 
The CPU-scheduling function is the dispatcher, which is the module that gives control of the CPU to the process selected by the short-term scheduler. It receives control in kernel mode as the result of an interrupt or system call. The functions of a dispatcher involve the following:
1. Context switches, in which the dispatcher saves the state (also known as context) of the process or thread that was previously running; the dispatcher then loads the initial or previously saved state of the new process.
2. Switching to user mode.
3. Jumping to the proper location in the user program to restart that program indicated by its new state.
The dispatcher should be as fast as possible, since it is invoked during every process switch. During the context switches, the processor is virtually idle for a fraction of time, thus unnecessary context switches should be avoided. The time it takes for the dispatcher to stop one process and start another is known as the dispatch latency.
A
Dispatcher
B
Interrupt
C
Schedular
D
Threading

Leave a Reply

Your email address will not be published. Required fields are marked *