【计算机】CH02_COMPUTER SYSTEM STRUCTURES.pptVIP

  • 2
  • 0
  • 约1.53万字
  • 约 46页
  • 2018-02-26 发布于江苏
  • 举报
【计算机】CH02_COMPUTER SYSTEM STRUCTURES

CHAP 2 Computer-System Structures 计算机系统结构 A Sample 一个例子 Computer-System Architecture计算机系统体系结构 Computer System Operation 计算机系统运行 I/O Structure I/O结构 Storage Structure 存储构造 Storage Hierarchy 存储层次 Hardware Protection 硬件保护 General System Architecture 一般系统体系结构 Summary(总结) Homework作业 用户告诉操作系统执行hello程序 操作系统找到该程序,检查其类型 检查程序首部,找出正文和数据的地址 文件系统找到第一个磁盘块 父进程需要创建一个新的子进程,执行hello程序 操作系统需要将执行文件映射到进程结构 Computer-System Architecture 计算机系统体系结构 Computer-System Operation 计算机系统运行 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 local 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操作已完成 Common Functions of Interrupts 中断的常见功能 Interrupts transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines. 通常中断通过中断矢量把控制传送给中断服务程序,该中断矢量包含了所有服务程序的地址 Interrupt architecture must save the address of the interrupted instruction. 中断体系结构必须保护被中断指令的地址 Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt. 当另一个中断正在处理时,刚进入的中断不能作用,以免丢失中断 A trap is a software-generated interrupt caused either by an error or a user request.陷阱是由于出错或用户请求引起的软件生成的中断 An operating system is interrupt driven. 操作系统是中断驱动的 Interrupt Handling 中断处理 The operating system preserves the state of the CPU by storing registers and the program counter. 操作系统通过存储寄存器和程序计数器而保留了CPU的状态 Determines which type of interrupt has occurred: 确定哪一种中断发生了: polling 轮询 vectored interrupt system 矢量化中断系统 Separate segments of code determine what action should be taken for each type of interrupt 对每一类中断分离代码段,以确定应该采取什么反应 Interrupt T

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档