??After starts up Executes prearranged process,or Waits for interrupt Modern OSs are interrupt-driven(中断驱动的). 1口4日4在4生·EQC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ??? After starts up ▶ Executes prearranged process, or ▶ Waits for interrupt Modern OSs are interrupt-driven(中断驱动的)
Outline Computer System Operation A modern computer system System boot Interrupt 1/0 Structure 1/0 Structure 1/0 operation DMA Storage Structure and Storage Hierarchy Storage Structure Storage hierarchy Hardware Protection Hardware Protection General System Architecture General System Architecture system call Comput ing Envi ronments 小结知作业 1口4日4在14色至)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline Computer System Operation A modern computer system System boot Interrupt I/O Structure I/O Structure I/O operation DMA Storage Structure and Storage Hierarchy Storage Structure Storage hierarchy Hardware Protection Hardware Protection General System Architecture General System Architecture system call Computing Environments 小结和作业
Interrupt I Interrupt represents an event to be handled For hardware:Device interrupt The completion of an 1/0 operation a key stroke or a mouse move timer … For error (also hardware):exception 1.Trap for debug 2.Fault example:page fault,division by zero,invalid memory access 3.Abort,a serious error For software:System call 4口140,4在4生至QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt I Interrupt represents an event to be handled For hardware: Device interrupt ▶ The completion of an I/O operation ▶ a key stroke or a mouse move ▶ timer ▶ … For error (also hardware): exception 1. Trap for debug 2. Fault ▶ example: page fault, division by zero, invalid memory access 3. Abort, a serious error For software: System call
Interrupt Il To request for some operating-system service Linux:INT 0x80 MS/DOS,windows:INT 0x21 Modern OSs are interrupt-driven(中断驱动的) 1口4回4在4生·EQC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt II ▶ To request for some operating-system service ▶ Linux: INT 0x80 ▶ MS/DOS, windows: INT 0x21 Modern OSs are interrupt-driven(中断驱动的)
Interrupt handling I When the CPU is interrupted 1.Stops what it is doing 2.Incoming interrupts are disabled to prevent a lost interrupt 3.Transfers control to the ISR Interrupt Service Routine,中断服务例程) ISR:A generic routine in fixed location and then call the interrupt-specific handler interrupt vector table(中断向量表) When the ISR completed, Back to interrupted program 4口4回,4在4色要刀QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt handling I When the CPU is interrupted 1. Stops what it is doing 2. Incoming interrupts are disabled to prevent a lost interrupt 3. Transfers control to the ISR ( Interrupt Service Routine, 中断服务例程) ▶ ISR: A generic routine in fixed location and then call the interrupt-specific handler ▶ interrupt vector table(中断向量表) When the ISR completed, Back to interrupted program