上下文切换

来源:互联网 发布:大数据和数据挖掘教程 编辑:程序博客网 时间:2024/05/21 22:55

linux进程管理之上下文切换(context switching)

During process execution, information on the running process is stored in registers on theprocessor and its cache. The set of data that is loaded to the register for the executingprocess is called thecontext. To switch processes, the context of the running process isstored and the context of the next running process is restored to the register. The processdescriptor and the area called kernel mode stack are used to store the context. This switchingprocess is called context switching. Having too much context switching is undesirable because the processor has to flush its register and cache every time to make room for the new process. It could cause performance problems.

Fig. linux context switching




原创粉丝点击