Which of the following statement(s) is/are correct for context switching in…
2024
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.
- A.
Neither I nor II
- B.
Only I
- C.
Only II
- D.
Both I and II
Attempted by 233 students.
Show answer & explanation
Correct answer: D
During a context switch, the kernel saves the old process context in its PCB. The switch consumes CPU time without doing user-process work, so context-switch time is overhead.