转自
https://zhuanlan.zhihu.com/p/52845869
https://en.wikipedia.org/wiki/Context_switch
深入理解内核进程上下文切换 https://mp.weixin.qq.com/s/b-sfGCbR6Rp5CNI-3_S1cA