作业系统OperatingSystems-ShareCourse学联网.PDF

作业系统OperatingSystems-ShareCourse学联网.PDF

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
作业系统OperatingSystems-ShareCourse学联网.PDF

2014/4/25 作業系統 Operating Systems 靜宜大學資訊傳播工程學系 劉國有助理教授 kyliu@pu.edu.tw 輸入/輸出裝置 (I/O Devices) 裝置控制器 (Device Controllers) I/O Devices  I/O devices can be roughly divided into two categories: ◦ Block devices: stores information in fixed-size blocks. All transfers are in units of one or more entire blocks.  Ex: Hard disks, CD-ROMs, and USB sticks ◦ Character devices: delivers or accepts a stream of characters, without regard to any block structure.  Ex: Printers, network interfaces and mice 1 2014/4/25 Device Controllers  I/O units consist of a mechanical component (機械 元件, device itself) and an electronic component (電 子元件, device controller or adapter).  Controller’s job (ex: reading a disk): Convert the serial bit stream into a block of bytes  Perform any error correction necessary  Make available to main memory (copy data to main memory) How the CPU communicates with controller?  Each controller has a few registers that are used for communicating with the CPU.  By writing into these registers, the OS can command the device to perform some actions. (ex, deliver data)  By reading from these registers, the OS can learn what the device’s state is, whether it is prepared to accept a new command.  In addition to the control registers, many devices have a data buffer that the OS can read and write. (ex. video RAM) 2 2014/4/25 How the CPU communicates with the control registers and the device data buffers? (1) Each control register is assigned an I/O port number (8 or 16 bit integer). The CPU u

文档评论(0)

wendang_12 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档