Context Switch

cpu控制權從一個process到另一個process的過程。

Consume time of context switch取決於硬體機器
ex.
記憶體速度, 暫存器數量, 以及特殊指令是否存在。

如何降低context-switching負擔