Which of the following statement(s) is/are correct for context switching in Operating
Which of the following statement(s) is/are correct for context switching in Operating
System?
I. When a context switch occurs, the kernel saves the context of the old process in
its PCB (Process Control Block).
II. Context-Switch time is pure overhead, because the system does no useful work
while switching.
Show answerHide answer
Correct answer: (D) Both I and II
Explanation
During a context switch the kernel saves the old process state in its PCB and loads the new one's. This switching time is pure overhead, since no useful work is done. Both are correct.