- 27
- 0
- 约1.76万字
- 约 25页
- 2017-03-21 发布于湖北
- 举报
《操作系统》知识点总结Chap 1 1. What is an Operating System(OS 运行在内核态的软件)an operating system is as an extended machine and a resource manager2. The program that users interact with, usually called the shell when it is text based and the GUI (Graphical User Interface).3. Most computers have two modes of operation: kernel mode and user mode. The operating system is the most fundamental piece of soft-ware and runs in kernel mode (also called supervisor mode).In this mode it has complete access to all the hardware and can execute any instruction the machine is capable of executing. The rest of the software runs in user mode, in which only a subset of the machine instructions is available.内核态中,OS拥有对所有的硬件的完全访问权,可以执行机器能够运行的任何指令。软件的其余部分运行在用户态下,只使用了机器指令中的一个子集。4. To obtain services from the operating system, a user program must make a system call, which traps into the kernel and invokes the operating system.Chap 2: Processes and ThreadsProcessA process is just an executing program, including the current values of the program counter, registers and variables.进程的三态模型:1) Running(运行):该时刻进程实际占有CPU2) Ready(就绪):可运行,但因为其他进程正在运行而暂时停止3) Block(阻塞):除非某种外部事件发生,否则进程不能运行进程表(process table):每个进程占有一个进程表项(process entry)(也叫进程控制块, PCB),该表项包含了进程状态的所有信息CPU利用率CPU utilization = 1 –pn(n个进程,每个等待io的时间与停留在内存中时间的比为p)Threads1. 允许在同一个进程空间中存在多个线程,这些线程之间有较大的独立性一个进程中所有线程共享的内容(进程的属性):每个线程独有的内容:(每个线程有自己的堆栈)2. 线程实现的两种方式——用户空间和内核中①在用户空间中实现线程内核对线程包一无所知,从内核角度考虑,就是按正常的方式管理,即单线程进程(存在运行时系统)②在内核中实现线程在某个线程希望创建一个新线程或撤销一个已有线程时,它进行一个系统调用,这个系统调用通过对线程表的更新完成线程创建和撤销工作。③混合实现在此模型中,每个内核级线程有一个可以轮流使用的用户级线程集合。Inter Process Communication/ IPC1. Situations like this, where two or more processes are reading or writing some shared data and the final result depends on who runs precisely when(进程运行的精确时序), are called race conditions. 2. Critical Regions(临界区)prohibit(阻止) more than one process from reading and writing the shared data at the same time——mutual exclusion(互斥)That part of the program where the shared memory is accessed is called the critical
您可能关注的文档
- GDI(widowsAPI函数)试题.doc
- 2015年中考物理复习配套:第5章透镜及其应用辩析.ppt
- 老年人慢性病防治基本知识张志忠新版本2规范.pptx
- Web设计沈士根版课后习题试题.doc
- VTS常用船舶操纵英语辩析.ppt
- 第二章基本操作规范.ppt
- 第二章基本数据类型和基本操作规范.ppt
- W10问题(葵花宝典)0306辩析.ppt
- GIS技术协议试题.doc
- W10系列打印机使用技巧及常见故障辩析.ppt
- 保时捷交付合同模板(3篇).docx
- 混合稀土对镁合金阻燃及氧化行为的多维度探究与机制解析.docx
- 刑法国际化视域下属地管辖原则的重塑与发展.docx
- 湘潭九华示范区城市化土地流转中政府角色的多维度审视与优化策略.docx
- 运输通道中公铁系统路径的协同优化与合理配置研究.docx
- Finsler流形上Laplace算子的理论探究与应用拓展.docx
- 论卫生行政许可制度的构建与完善:理论、实践与发展.docx
- 基于计算智能技术的需求预测方法:理论、应用与展望.docx
- 夫西地酸钠联合利福平对表皮葡萄球菌体外培养生物膜的作用研究:机制与疗效探究.docx
- 侦查阶段律师“三难”问题深度剖析与应对策略研究.docx
最近下载
- 海绵城市监理实施细则范本·仅供参考.doc VIP
- 七年级数学下册-相交线与平行线测试题(同名10636).doc VIP
- 《跨学科主题学习设计与实施》全套教学课件.pptx
- 建设工程项目管理全套课件.pptx
- 数控多轴加工编程与仿真全套教学课件.pptx
- 2018助理班主任工作总结3篇-2018助理班主任工作总结3篇-2018助理班主任工作总结3篇-.doc VIP
- 《水工程施工》课程大纲.pdf VIP
- 市政管线项目划分.doc VIP
- 2026年春季开学第一课 课件:策马新学期,筑梦向远方-2025-2026学年下学期优质主题班会(全国通用).pptx
- 初高中英语必背4000个词汇表.pdf
原创力文档

文档评论(0)