【文章內(nèi)容簡介】
/1/26 Program Flow of Control With Interrupts, Short I/O Wait ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Program Flow of Control With Interrupts。 Long I/O Wait ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Interrupt Handler ? A program that determines nature of the interrupt and performs whatever actions are needed ? Control is transferred to this program ? Generally part of the operating system ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Interrupts ? Suspends the normal sequence of execution ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Interrupt Cycle ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Interrupt Cycle ? Processor checks for interrupts ? If no interrupts fetch the next instruction for the current program ? If an interrupt is pending (待解決的 ), suspend execution of the current program, and execute the interrupthandler routine ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Timing Diagram Based on Short I/O Wait ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Timing Diagram Based on Short I/O Wait ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Simple Interrupt Processing ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Changes in Memory and Registers for an Interrupt ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Changes in Memory and Registers for an Interrupt ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Multiple Interrupts ? Disable interrupts while an interrupt is being processed ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Multiple Interrupts ? Define priorities for interrupts ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Multiple Interrupts ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Multiprogramming ? Processor has more than one program to execute ? The sequence the programs are executed depend on their relative priority and whether they are waiting for I/O ? After an interrupt handler pletes, control may not return to the program that was executing at the time of the interrupt ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Memory Hierarchy ? Faster access time, greater cost per bit ? Greater capacity, smaller cost per bit ? Greater capacity, slower access speed ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Memory Hierarchy ?? 網(wǎng)絡(luò)與分布式系統(tǒng)研究室 (DisNet Lab of NWU) 2023/1/26 Going Down the Hierarchy ? Decreasing cost per bit ? Increasing capacity ? Increasing access time ? Dec