CPU从键盘读取hello命令.pptVIP

  • 28
  • 0
  • 约1.38万字
  • 约 22页
  • 2017-08-26 发布于天津
  • 举报
CPU从键盘读取hello命令.ppt

* 当在键盘敲回车时,操作系统执行一系列命令将代码和数据从磁盘调入主存。 * 一旦hello代码和数据存入主存,CPU就开始执行hello程序中的指令并依照这些指令将“hello\n”中的字节从存储器中拷贝到寄存器组再从寄存器中输送到显示终端。 * Back to our hello example. When the shell loaded and ran the hello program, and when the hello program printed its message, neither program accessed the keyboard, display, disk, or main memory directly. Rather, they relied on the services provided by the operating system. We can think of the operating system as a layer of software interposed between the application program and the hardware, as shown in Figure 1.10. All attempts by an application program to manipulate the

文档评论(0)

1亿VIP精品文档

相关文档