OS -- three easy pieces -- (Persistence 01) I/O Devices

本文介绍了操作系统如何与输入/输出(I/O)设备交互,包括系统架构、典型的设备接口、canonical 协议、DMA 数据传输以及设备驱动的作用。讨论了轮询和中断两种控制设备的方式,强调中断对于提高系统利用率的重要性,并探讨了不同情况下选择合适控制方式的策略。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Persistence:

making information persist, despite computer crashes, disk failures, or power outages.

 

I/O Devices

introduce the concept of an input/output (I/O) device and show how the operating system might interact with such an entity.

1 System Architecture

System architecture is a hierarchical structure, where components that demand high performance (such as the graphics card) are nearer the CPU and lower performance components are further away, due to physics and cost (the faster a bus is, the shorter it must be; thus, a high-performance memory bus does not have much room to plug devices and such into it. In addition, engineering a bus for high performance is quite costly).

The picture shows a single CPU attached to the main memory of the system via some kind of memory bus or interconnect.
Some devices are connected to the system via a general I/O bus, which in many modern systems would be PCI (or one of its many derivatives); graphics and some other higher-performance I/O devices might be found here.
Finally, even lower down are one or more of what we call a peripheral bus, such as SCSI, SATA, or USB. These connect slow devices to the system, including disks, mice, and keyboards.

Modern systems increasingly use specialized chipsets and faster point-to-point interconnects to improve performance.

The picture shows an approximate diagram of Intel’s Z270 Chipset.
Along the top, the CPU connects most closely to the memory system, but also has a high-performance connection to the graphics card.
The CPU connects to an I/O chip via Intel’s proprietary DMI (Direct Media Interface), and the rest of the devices connect to this chip via a number of diff

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值