电子科技大学:《计算机操作系统》课程教学资源(PPT课件讲稿)第二章 进程与调度 Processes and Scheduling

Chapter 2 Processes and Scheduling
Chapter 2 Processes and Scheduling (I)

Contents 8 Foundation Process Description and control Implement: Mutual Exclusion and synchronization ☆ Avoidance: Deadlock(死锁) and Hungry(饥饿 ☆ Solution: Several classical(经典) Problems ☆ About: Process communications ☆ Policy: Process scheduling ROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Contents ❖ Foundation:Process Description and Control ❖ Implement: Mutual Exclusion and Synchronization ❖ Avoidance: Deadlock(死锁) and Hungry(饥饿) ❖ Solution: Several Classical(经典) Problems ❖ About: Process Communications ❖ Policy: Process scheduling

Process Description and Control (p101) Concurrence(vs parallel) execution of processes ( supplement(补充)) Process states and transition 8 Process description (PCB) Process control (Primitive/Atomic) ROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Process Description and Control (p101) ❖Concurrence (vs.parallel) execution of processes (supplement(补充)) ❖Process states and transition ❖Process description(PCB) ❖Process control(Primitive/Atomic)

Serial Execution of program Serial execution characteristics Sequence(顺序)、 isolate(独立 recurrence(再现) Concurrence execution characteristics discontinuity, no-isoloate, no-recurrence ☆ Bernstein condition R(D和P2WPnR(PWPD∩WP2)= PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Serial Execution of Program ❖ Serial execution characteristics ٭ Sequence ( 顺 序 ) 、 isolate ( 独 立 ) 、 recurrence(再现) ❖Concurrence execution characteristics ٭ discontinuity、no-isoloate、no-recurrence ❖Bernstein condition R(P1) ∩W(P2)∪W(P1) ∩R(P2)∪W(P1) ∩W(P2) = {Φ}

Some Problems for Process Management (p101) ☆ How to dispatch(分派) CPU to multi-processes o How to allocate resource to multi-processes and avoid deadlock and hungry o How to implement the process communication ROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Some Problems for Process Management(p101) ❖How to dispatch(分派) CPU to multi-processes ❖How to allocate resource to multi-processes and avoid deadlock and hungry ❖How to implement the process communication

Process Concept(p60) 令 A program in execution ☆The“ animated spirit” of a program o The entity that can be assigned to and executed on a processor PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Process Concept(p60) ❖ A program in execution ❖ The “animated spirit” of a program ❖ The entity that can be assigned to and executed on a processor

rocess Characteristics(Supplement) Dynamic: create->dispatch->request 1o-> redispatch(重分派)>ext ☆ Concurrence Independence: Each process does not feel the existence of other processes Discontinuity: PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Process Characteristics(Supplement) ❖Dynamic: create->dispatch->request I/O-> redispatch(重分派)->exit ❖Concurrence: ❖Independence:Each process does not feel the existence of other processes. ❖Discontinuity:

Architecture of Process (p120) ☆ User data and progran ☆ System stack Pcb Process Control block PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Architecture of Process(p120) ❖User data and program ❖System stack ❖PCB,Process Control Block

Process States Concurrence execution of processes ☆ States of processes(2- states、5- states) PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Process States ❖Concurrence execution of processes ❖States of processes(2-states、5-states)

Example of Concurrence Execution(p102) An example Three processes are fully loaded in main memory. A small dispatcher program that moves the processor from one process to another The first 12 instruction executed in processes a and c s Process b executes four instructions and the fourth nstruction invokes(激发) an 1O operation for which the process must wait. PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Example of Concurrence Execution(p102) An example: ٭ Three processes are fully loaded in main memory. ٭ A small dispatcher program that moves the processor from one process to another. ٭ The first 12 instruction executed in processes A and C. ٭ Process B executes four instructions and the fourth instruction invokes(激发) an I/O operation for which the process must wait
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 西安交通大学:《物联网技术导论》课程教学资源(PPT课件)第一章 物联网技术概论(主讲:桂小林).ppt
- 《计算机网络教程》课程PPT教学课件(第三版)第3章 网络体系结构与网络协议.ppt
- 《C语言程序设计》课程教学资源(PPT课件讲稿)第9章 用户自己建立数据类型.pptx
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 07 Exception Handling.ppt
- 香港城市大学:《计算机图形学》课程教学资源(PPT课件讲稿)图的算法 Graph Algorithms.ppt
- 白城师范学院:《数据库系统概论 An Introduction to Database System》课程教学资源(PPT课件讲稿)第五章 数据库完整性.pptx
- 《SQL Server 2000数据库教程》教学资源(PPT课件讲稿)第11章 数据库安全性管理.ppt
- PROGRAMMING METHODOLOGY AND SOFTWARE ENGINEERING.ppt
- 南京大学:移动Agent系统支撑(PPT讲稿)Mobile Agent Communication——Software Agent.pptx
- 《计算机组成原理》课程教学资源(PPT课件讲稿)第三章 CPU子系统.ppt
- 长春工业大学:《Javascript 程序设计》课程教学资源(PPT课件讲稿)第8章 网页特效 JavaScript.ppt
- 江苏海洋大学(淮海工学院):《Java面向对象程序设计》课程教学资源(PPT课件讲稿)全国二级Java考试的重点难点.pptx
- 交互式数据语言(PPT讲稿)Basic IDL knowledge.ppt
- 电子科技大学:《计算机操作系统》课程教学资源(PPT课件讲稿)第二章 进程与调度(Processes and Scheduling).ppt
- 北京航空航天大学:《数据挖掘——概念和技术(Data Mining - Concepts and Techniques)》课程教学资源(PPT课件讲稿)Chapter 05 Mining Frequent Patterns, Association and Correlations.ppt
- 计算机算法(PPT讲稿)禁忌搜索算法 Tabu Search.ppt
- 2019年《计算机网络》考试大纲.doc
- 四川大学:《数据结构》课程教学资源(PPT课件讲稿)第五章 树和二叉树 Tree & Binary Tree.ppt
- 佛山科学技术学院:《网络技术基础》课程教学资源(专业技能考试大纲).doc
- 《计算机操作系统》课程教学资源(PPT课件讲稿)第二章 进程描述与控制 Process Concept & Process Control.ppt
- 《Web网站设计与开发》课程教学资源(PPT课件讲稿)第10章 Java Web实用开发技术.ppt
- 可信计算 Trusted Computing(PPT讲稿)TSS - TCG Software Stack.ppt
- 西安电子科技大学:《现代密码学》课程教学资源(PPT课件讲稿)第一章 绪论(主讲:董庆宽).pptx
- 《VB程序设计》课程教学资源(PPT课件讲稿)第二章 VB语言基础.ppt
- 《计算机网络》课程教学大纲 Computer Networks.pdf
- 《Photoshop教程》教学资源(PPT课件)第6章 Photoshop的绘图工具.ppt
- 《高级语言程序设计》课程教学资源(试卷习题)试题二(无答案).doc
- 机械工业出版社:国家“十一五”规划教材《数据库原理与应用教程》教学资源(PPT课件,第3版)第4章 数据操作.ppt
- 厦门大学:Web技术(PPT课件讲稿)网站快速开发 & Web前端技术.ppt
- 《面向对象技术》课程教学大纲 Technology of Object-Oriented Programming.doc
- 《算法分析与设计》课程教学资源(PPT课件讲稿)第六章 基本检索与周游方法(一般方法).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)设计模式 Design Patterns(1).ppt
- 上海交通大学:IT项目管理(PPT讲稿)讲座5 目标、范围管理与需求工程.ppt
- 《面向对象建模技术》课程教学资源(PPT课件讲稿)第11章 UML与RUP.ppt
- 中国科学技术大学:《网络信息安全 NETWORK SECURITY》课程教学资源(PPT课件讲稿)第九章 网络攻击.ppt
- 西安电子科技大学:《Mobile Programming》课程PPT教学课件(Android Programming)Lecture 04 Activity, Intent and UI.pptx
- 对外经济贸易大学:《电子商务概论 Electronic Commerce》课程教学资源(PPT课件讲稿)第八章 电子支付与网络银行.pptx
- 《计算机组装与维护》课程教学资源(PPT讲稿)第九章 计算机软件维护.ppt
- 《计算机组装与维护》课程教学资源(PPT课件讲稿)第16章 常见计算机故障解决案例.ppt
- 《单片机原理及接口技术》课程教学资源(PPT课件)第7章 AT89C51单片机系统扩展 7.4 数据存储器的扩展 7.5 I/O口的扩展.ppt