What is saved in a context switch?
问题 What is exactly saved and restored in a context switch between two threads in the same process between two processes 回答1: This is rather a complex question since the answer(s) are dependent on many things: The CPU in question It can vary significantly even within the same family for example the additional registers added for SSE/MMX operations. The operating system, since it controls the handlers which trigger on a context switch and decide whether the CPU's hardware (if any) to assist in a