OS
운영체제 > Ch01-22S  (웹 보기)
📌 Memory O와 같이 Processor, CPU, Core보다 느린 다른 모듈의 종료를 기다려야 할 때,

  • 목적: Processor의 Utilization (활용) 증가

종류

  1. Program: 프로그램의 잘못된 연산/참조
  2. Timer (Overflow):
    Processor의 매 Clock Pulse를 카운트하다 Overflow 발생
  3. O: I/O 작업 정상/비정상 종료
  4. HW Failure: HW 장치 오류, Parity Error

Multiple Interrupts

Interrupt Handler가 실행 중일 때 또 다른 Interrupt가 들어올 경우,

  1. Disable Second Interrupt: Interrupt Handler에서는 Instruction Cycle에서 Interrupt Check를 하지 않다가, Handler의 마지막 Instruction이 끝난 뒤 Check하여 실행
  2. Priority Scheme: Handler Instruction Cycle에서도 Interrupt Check를 하고, 인식된 경우 현재 실행 중인 것과 새로 감지된 것의 우선 순위를 비교하여 순서에 맞게 Interrupt 처리