Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- npm
- update
- Webpack
- Regular expression
- eslint
- current_date
- Spring Batch
- migration
- expire_logs_days
- spring
- MySQL
- java
- Effective Java
- mysql 5.5
- Effective Java 3/e
- nodejs
- 정규표현식
- log4j2
- regex
- Node
- 퀵소트
- log_bin
- Chunk
- REACTJS
- git
- upgrade
- JavaScript
- Express
- REACT
- spring cloud
Archives
- Today
- Total
내 세상
[Operating System] Interrupt, PCB, Context Switching 본문
Knowledge/Operating System
[Operating System] Interrupt, PCB, Context Switching
sga8 2019. 4. 29. 23:02728x90
Interrupt
- 실행중인 process가 예기치 못한 상황이 발생되어 더 이상 실행하기 어렵거나 먼저 처리해야할 우선순위가 높은 일이 생긴 경우
- Interrupt가 발생하면 실행중이던 process가 CPU의 사용을 멈추고 Interrupt 처리가 된 후에 다시 CPU 점유
Interrupt Process Routine(인터럽트 처리 루틴, IPR)
- Interrupt 발생 원인을 찾아 ISR 호출
- Interrupt 발생 시점부터 Interrupt 처리가 종료되는 시점까지를 말함
Interrupt Service Routine(인터럽트 서비스 루틴, ISR)
- Interrupt에 대한 실제 처리를 담당
- Interrupt 처리를 시작하는 시점부터 Interrupt 처리가 종료되는 시점까지를 말함.
Process Control Block (프로세스 제어 블록, PCB)
- Process 생성 시, PCB라는 자료구조가 kernel 영역에 생기고 process에 대한 정보를 저장해둠.
- Process Scheduling을 위해 process에 관한 모든 정보를 가지고 있는 데이터베이스
- Pointer - parent process에 대한 pointer, child process에 대한 pointer 등
Context Switching
- Interrupt 발생 → context 저장 → Interrupt 처리 → Interrupt Service → context 재적재
- Interrupt가 발생했을 때, interrupt 처리 과정 중에 context switching이 일어남.
- process는 running → ready → running 상태가 된다.
728x90
'Knowledge > Operating System' 카테고리의 다른 글
[Operating System] Deadlock, 교착상태 (0) | 2019.05.05 |
---|---|
[Operating System] Semaphore, Mutex (1) | 2019.05.01 |
[Operating System] Process Scheduling (5/5 수정) (0) | 2019.04.29 |
[Operating System] 운영체제, 프로세스 상태 전이도 (0) | 2019.04.29 |