[OS] Context Switching

Context Switching

Context Switching
Context Switching은 프로세스를 중단했다가 재개하는 작업이다. 인터럽트나 스케줄러에 의해 중단이 필요하고 실행중인 현재 문맥을 저장할 필요가 있다. Context Switching이 일어나면 커널은 과거 프로세스의 Context를 PCB에 저장(Context Save)하고 스케줄된 새로운 프로세스의 Context를 복구(Context Restore)한다. Context Switching중에는 시스템이 아무런 작업을 수행하지 못하기 때문에 순수한 오버헤드이다.

Author: Song Hayoung
Link: https://songhayoung.github.io/2020/07/21/OS/context-switching/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.