IO Systems n IO Hardware n Application IO

  • Slides: 40
Download presentation

I/O Systems n I/O Hardware n Application I/O Interface n Kernel I/O Subsystem n

I/O Systems n I/O Hardware n Application I/O Interface n Kernel I/O Subsystem n Transforming I/O Requests to Hardware Operations n Streams n Performance วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา /สงออก (I/O Systems) | 2

Interrupts n CPU จะถก Interrupt request line โดย I/O device n Interrupt handler (CPU)

Interrupts n CPU จะถก Interrupt request line โดย I/O device n Interrupt handler (CPU) ไดรบ interrupts n จะพจารณาวาตองทำตามคำรองขอนนทนทหร อรอเวลาไวกอน n Interrupt vector to dispatch interrupt to correct handler § Based on priority § Some unmaskable n Interrupt mechanism also used for exceptions วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา /สงออก (I/O Systems) | 15

Intel Pentium Processor Event-Vector Table วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา

Intel Pentium Processor Event-Vector Table วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา /สงออก (I/O Systems) | 17

อปกรณแบบบลอกและแบบอกขระ Block and Character Devices n Block devices ไดแก disk drives § Command ประกอบดวย

อปกรณแบบบลอกและแบบอกขระ Block and Character Devices n Block devices ไดแก disk drives § Command ประกอบดวย read, write, seek § Raw I/O หรอ file-system access § อาจใชการเขาถงแฟมแบบ Memory-mapped n Character devices ประกอบดวย keyboards, mice, serial ports § Commands ประกอบดวย get, put § Libraries layered on top allow line editing วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา /สงออก (I/O Systems) | 23

Sun Enterprise 6000 Device-Transfer Rates วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา

Sun Enterprise 6000 Device-Transfer Rates วเชษฐ พลายมาศ | ระบบปฏบตการ (OS: Operating Systems) | ระบบรบเขา /สงออก (I/O Systems) | 28