What is "context switching" and what overhead does it introduce?
Correct! Well done.
Incorrect.
The correct answer is A) The process of saving the state of a currently running process/thread and loading the state of another, allowing the CPU to switch between tasks; it introduces overhead from saving/restoring registers and potential cache/TLB invalidation
Correct Answer
The process of saving the state of a currently running process/thread and loading the state of another, allowing the CPU to switch between tasks; it introduces overhead from saving/restoring registers and potential cache/TLB invalidation
Switching between tasks requires saving the current task's register state and loading another's, which takes CPU cycles; frequent context switches can also degrade cache/TLB effectiveness, adding indirect overhead.