What is a context switch? T
What is a context switch?
T
Answer: B. The act of saving and restoring the state of a process so that execution can be resumed from the same point at a later time — A context switch involves storing the context or state of a process so it can be reloaded when needed and execution can continue where it left off.
- A.
Switching from user mode to kernel mode
- B.
The act of saving and restoring the state of a process so that execution can be resumed from the same point at a later time
- C.
Switching between different sections of code
- D.
Moving a process from primary to secondary memory
Attempted by 497 students.
Show answer & explanation
Correct answer: B
A context switch involves storing the context or state of a process so it can be reloaded when needed and execution can continue where it left off.