Interrupt Q Interrupts are system responses to asynchronous events Q Interrupt Signal Q Interrupt Source Q Site Information Q Interrupt Handler Q Interrupt Vector table Asynchronous event Response: Process Execution code can be interrupted at any time, then go to execute exception handler Interruptions in life and interruptions in computer systems 1) Non-disruptive life scene Zhang San reading, kitchen boiling water 2) Interrupted life scene Zhang San reading, set alarm clock, kitchen boil water. Alarm Clock signal interrupt, Zhang San the book (page 20th), go to the kitchen to deal with boiling water, Zhang San reopen 20 pages to read. 3) Interrupt scenario for the computer system Interrupt source signal interrupt, CPU to determine whether the interrupt shielding shielding, protection site, CPU execution interrupt handler, CPU recovery site, continue the original task. 4) Other concepts of interruption The Interrupt vector table holds the entry address of the interrupt handler. The number of interrupts is fixed, and the interrupt vector table is initialized when the operating system starts. Interrupt has priority (someone knocks, someone calls, has priority) Interrupts can be masked (Zhang San can block the phone). |