Which of the following actions is typically not performed by the operating…
1999
Which of the following actions is typically not performed by the operating system when switching context from process A to process B?
- A.
Saving current register values and restoring saved register values for process B.
- B.
Changing address translation tables.
- C.
Swapping out the memory image of process A to the disk.
- D.
Invalidating the translation look-aside buffer.
Attempted by 77 students.
Show answer & explanation
Correct answer: C
During a context switch, the operating system saves the CPU state of process A and restores the saved CPU state of process B. It may also switch address-translation information, such as the page-table base, and invalidate or flush the TLB so that translations from the previous process are not incorrectly reused. Swapping the entire memory image of process A to disk is a separate memory-management operation done under memory pressure or process suspension; it is not part of a normal context switch. Hence, option C is typically not performed during context switching.