아래 글은 CS(컴퓨터 과학) 관련 개념 정리 및 작성자 공부를 위해 작성되었습니다.
📃 참고자료
# 인터럽트(Interrupt)
예상치 못한, 외부에서 발생한 이벤트 -> Unexpected, external events
- 인터럽트의 종류
- I/O interrupt
- Clock interrupt
- Console interrupt
- Program check interrup
- Machine check interrupt
- Inter-process interrupt
- System call interrupt
- 인터럽트 처리 과정
- Context Switching (문맥 교환)
context -> 프로세스와 관련된 정보들의 집합
- CPU register context => in CPU
- Code & data, Stack, PCB => in memory
Context saving
- 현재 프로세스의 Register context를 저장하는 작업
Context restoring
- Register context를 프로세스로 복구하는 작업
Context switching
- 실행 중인 프로세스의 context를 저장하고, 앞으로 실행 할 프로세스의 context를 복구하는 일
- 커널의 개입으로 이루어짐
- Context Switch Overhead
Context switching에 소요되는 비용
- os마다 다름
- os의 성능에 큰 영향을 줌
불필요한 Context switching을 줄이는 것이 중요
- 예, 스레드(thread) 사용 등
반응형
'IT > CS(컴퓨터 과학)' 카테고리의 다른 글
프로세스 스케쥴링(Process Scheduling) - (1 / 4) (0) | 2021.09.01 |
---|---|
스레드 관리(Thread management) (0) | 2021.08.31 |
프로세스 관리(Process Management) - (1 / 2) (0) | 2021.08.29 |
운영체제 개요(Operating System Overview) - (3 / 3) (0) | 2021.08.28 |
운영체제 개요(Operating System Overview) - (2 / 3) (0) | 2021.08.27 |