操作系统原理操作系统原理 (5).pdf
《操作系统原理操作系统原理 (5).pdf》由会员分享,可在线阅读,更多相关《操作系统原理操作系统原理 (5).pdf(11页珍藏版)》请在文库网上搜索。
1、 操作系统操作系统原理原理 Operating System PrincipleOperating System Principle 2 2-1 1 计算机硬件计算机硬件 Computer-System Architecture 计算机系统体系结构 I/O devices and the CPU can execute concurrently.I/O 设备与CPU可并行运行 Each device controller is in charge of a particular device type.每一设备控制器负责一个设备类型 Each device controller has a l
2、ocal buffer.每一设备控制器有一局部缓存 CPU moves data from/to main memory to/from local buffers CPU 通过局部缓存与主存交换数据 I/O is from the device to local buffer of controller.I/O从设备到设备控制器的局部缓存 Device controller informs CPU that it has finished its operation by causing an interrupt.设备控制器通过引起中断通知CPU操作已完成 Computer-System O
3、peration 计算机系统操作 Computer-System Operation 计算机系统操作 中断机制 hardware interrupt 硬件中断 device controller informs CPU that it has finished its operation by causing an interrupt disk,timer,etc.software interrupt(trap)软件中断(陷阱)a trap(or an exception异常)division by zero,invalid memory access a system call 系统调用(a
4、lso called a monitor call)read(),write()中断定义 Why the interrupt?make the system more efficient and meanwhile make the system more efficient and meanwhile more responsivemore responsive Computer-System Operation 计算机系统操作 01 02 03 separate segments of code determine what action should be taken for each
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
30 文币 0人已下载
下载 | 加入VIP,免费下载 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 操作系统原理操作系统原理 5 操作系统 原理