문맥교환1 Context Switch가 일어날 때는 왜 overhead가 클까? 의문이 든 이유 Context Switch 개념에 대해 공부하다가 아래의 내용을 접했다. User mode에서 Kernel mode로 가는 건 Context Switch가 상대적으로 overhead가 적은 작업이다. Context Switch 없이 CPU 수행 정보 등 context의 일부를 PCB(Process Control Block)에 저장하기 때문이다. 다만, Kernel mode에서 User mode로 갈 때 Context Switch 발생 시에는 그 부담이 훨씬 크다. Cache Memory를 flush 할 때 overhead가 매우 크기 때문이다. 왜 Context Switch가 발생할 때 overhead가 큰 것일까? Context Switch란? Context Switch(문맥 교환)는 .. 2023. 9. 20. 이전 1 다음