《操作系统》考试要点.docVIP

  • 1
  • 0
  • 约2.35千字
  • 约 3页
  • 2018-04-17 发布于河南
  • 举报
《操作系统》考试要点

第一章 绪论 什么是操作系统? 资源管理器(resource manager):统一管理,提高利用率 Operating system allocates a CPU to several processes and make them run simultaneously OS divides memory into multiple areas … Files, directories, 虚拟机(virtual/extended machine):将物理上的一份资源变成逻辑上的多个资源。 A CPU is shared among many processes, however each process feels that it has a dedicated CPU. A four-cored CPU can execute four processes. Figure 1-1操作系统在计算机系统中的位置。选择:interrupt handler, cc, vi, DBMS, int属于哪一层 Device register: what? Port by which CPU control peripheral devices and fetch/send data from/to … communicate CPU reads data on disk by directly accessing it ( ) Kernel mode = supervisor mode:CPU执行OS 核心代码,可以执行任何指令(LGDTR, LDTR, STI, CLI, 改变进程在内存中位置) User mode: CPU正在执行一般的用户程序而不是操作系统时,所处的状态…。 如果用户程序执行INT(软中断指令),则CPU。。。,IRET(中断返回指令)kernel mode - user mode INT指令是将处理器从用户态切换到和核心态的唯一途径? P10. Multi programming: 多道程序,What? How ? (创建多个进程,利用中断技术在多个进程之间切换CPU) When ?(当中断发生时)when you are sleeping. Timesharing 分时 fen1shi2:一定是建立在多道程序基础之上,然而更为集中体现分时技术的是:多个终端连接一个主机。 Open source: what ?, who ? Page 18. what constitute a process? (text segment, data segment, stack segment, process table[pcb, proc_tab]) P21. working directory: what ? “./”当前目录 ..当前目录的父目录【cd .命令执行的结果是什么?(切换到根目录、切换到父亲目录,目录不变,..) cd / cd ..切换到父亲目录, cd ..肯定会改变目录吗? ./a.out(编辑文件.ashrc, 将./列为程序的搜索目录)】 P21. rwx bits:unix文件保护位,0642含义是什么? 110 100 010 P23. pipe,管道;编写一段程序,实现父子进程之间利用pipe进行通信,waitpid.c P26. 利用fork, waitpid, execve, getpid, creat, open, close, read, write编写程序(fork.c, waitpid.c readwrite.c) 第二章 进程 pseudo parallelism 伪并行, = sequential processes = simultaneously multiprocessor真并行,= true parallelism a multiprocessor system runs several processes in true parallelism mode ( ) figure 2-1, b. simultaneously并发:宏观上的一段时间内多个进程同时向前推进,一个处理器即可实现。parallelism:微观上,多个进程(绝对)同时执行,只能通过多处理器实现。 P55. 引起进程创建有哪些事件? P57. 进程终止的事件? P59. 进程状态及状态之间的转换。Fig 2-2转换发生的原因 P111. fig 2-29. describe the four layers that constitute MINIX 3 operating system, the function of each module,

文档评论(0)

1亿VIP精品文档

相关文档