○Exception Control

 ▷CPU는 단순히 명령을 읽고, 실행하기만 함. -> 시스템 상태 변화에 대응하기 힘듬.

 ▷예외 상황에 대응하기 위해 Kernal 사용

 

 ▶Exception

  ▷특정 event에 대응항져 Control을 User에서 Kernal로 이전시킴.

  ▷각 event는 고유한 exception handler를 가짐.

 

  ▶Asynchronous Exception

   ▷외부 프로세서의 interrupt pin에 의해 발생

   ▷next instruction을 return

   ▷Timer interrput, I/O interrupt from external device

 

  ▶Synchronous Exception

   ▶Traps

    ▷의도적인 Exception

    ▷next instruction을 return함

    ▷system calls, breakpoint traps, special instructions

 

   ▶Faults

    ▷의도적이지 않지만, 복구 가능한 Exception

    ▷current instruction을 다시 시도하거나, abort

    ▷page faults, protection faults(unrecoverable), floating poinr exceptions

 

   ▶Aborts

    ▷의도적이지 않고, 복구 불가능한 Exception

    ▷Abort함.

    ▷illegal instruction, parity error, machine check

'컴퓨터 지식 > 시스템' 카테고리의 다른 글

Shell  (0) 2020.12.12
Process Control  (0) 2020.12.11
Library  (0) 2020.12.01
Linking  (0) 2020.12.01
Memory Performance  (0) 2020.11.24

+ Recent posts