- 3
- 0
- 约1.76万字
- 约 25页
- 2017-09-08 发布于湖北
- 举报
《操作系统》知识点总结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
您可能关注的文档
- 财付通错误提示教案.docx
- 财务公司系统介绍教案.docx
- 采掘电钳工题库教案.docx
- 采煤机往年问答整理教案.docx
- 采油采气井控题库教案.docx
- 草本植物抗风蚀效应文献综述教案.docx
- 测绘地形图术语描述教案.docx
- 测量方案汇总教案.docx
- 测量学_在线作业_1教案.docx
- 材料成形摩擦与润滑教案.docx
- 2025-2026学年天津市和平区高三(上)期末数学试卷(含解析).pdf
- 2025-2026学年云南省楚雄州高三(上)期末数学试卷(含答案).pdf
- 2025-2026学年甘肃省天水市张家川实验中学高三(上)期末数学试卷(含答案).docx
- 2025-2026学年福建省厦门市松柏中学高二(上)期末数学试卷(含答案).docx
- 2025-2026学年广西钦州市高一(上)期末物理试卷(含答案).docx
- 2025-2026学年河北省邯郸市临漳县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省石家庄二十三中七年级(上)期末历史试卷(含答案).docx
- 2025-2026学年海南省五指山市九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省唐山市玉田县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省邢台市市区九年级(上)期末化学试卷(含答案).docx
最近下载
- 课件第3讲gps伪距测量原理.pptx VIP
- 焊割工操作安全培训内容课件.pptx VIP
- 蚌埠市博物馆展览陈列大纲.pdf VIP
- 《爷爷的爷爷从哪里来》整本书阅读 课件 四年级下册语文(统编版).pptx VIP
- 指南共识│咯血诊治专家共识.pptx
- 博物馆陈列展览大纲精编.docx VIP
- Q/GDW 376.1-2009《电力用户用电信息采集系统通信协议:主站与采集终端通信协议》及编制说明1.doc VIP
- 阀门电动执行装置设计毕业设计(论文).doc VIP
- 中考数学二轮复习 专题11 二次函数与矩形、菱形的存在性问题(知识解读)(解析版).doc VIP
- 博物馆陈列展览大纲(2019最新版).docx VIP
原创力文档

文档评论(0)