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

Processes and Scheduling Section Ill fttp://www 365pi4com
Processes and Scheduling Section III

Objective of scheduling fairness----Prevent starvation ☆ Efficiency ☆ Throughput 心 Response time PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Objective of scheduling ❖ Fairness----Prevent starvation ❖ Efficiency ❖ Throughput ❖ Response time

ypes of scheduling(调度类型p379) ☆ Sorted by os types(按系统类型分类 Batch scheduling(批处理调度) Time- sharing scheduling(分时调度) Real-time scheduling(实时调度) Multiprocessor scheduling(多处理机调度) ☆ Sorted by perform frequency and scheduling unit(按执行频率 分类) Long- term scheduling(长程调度) Medium- term scheduling(中程调度) Short-term scheduling(短程调度) >IO scheduling PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Types of scheduling (调度类型p379) ❖ Sorted by OS types(按系统类型分类) ٭ Batch scheduling(批处理调度) ٭ Time-sharing scheduling (分时调度) ٭ Real-time scheduling (实时调度) ٭ Multiprocessor scheduling(多处理机调度) ❖Sorted by perform frequency and scheduling unit(按执行频率 分类) ➢Long-term scheduling(长程调度) ➢Medium-term scheduling (中程调度) ➢Short-term scheduling (短程调度) ➢I/O scheduling

Scheduling and Process State Transitions(p380) New term Long-term scheduling scheduling Ready Suspend Running……Ext Medium-term Short-term scheduling scheduling B locked/ Blocked Suspend Medium-term schedulin Figure 9.1 Scheduling and Process State Transitions ROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Scheduling and Process State Transitions (p380)

Levels of scheduling(分级调度图P381)一 上eay Spend Medllunrern 重君 上ir levels of scheduling PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Levels of Scheduling(分级调度图P381)

P382 Long-term TIme-out scheduling Batch Ready oueue Short-term Release 工 scheduling Processor Medlum-term Interactive Readv suspend oueu Medllum-term Blocked, Suspend Queue Blocked Queue Event Event walt Queuing diaproces ses and schedulInG
PROCESSES AND SCHEDULING P382

Long-term scheduling(P380) ☆ Determines(确定) which program are admitted to the system for processing. Controls the degree of multiprogramming(多道程度). Once admitted(提 3), a job becomes a process and is added to the queue for short-term scheduler or for medium-term scheduler o In a batch system the long-term scheduler chooses the jobs held in(保持在) disk queue and creates processes from the queue when it can 座空會 PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Long-term scheduling(P380) ❖ Determines(确定) which program are admitted to the system for processing. Controls the degree of multiprogramming(多道程度). Once admitted(提 交), a job becomes a process and is added to the queue for short-term scheduler or for medium-term scheduler. ❖ In a batch system, the long-term scheduler chooses the jobs held in(保持在) disk queue and creates processes from the queue when it can

Two problems for long-term scheduling(p381) s Decide the number of processes that Os can take on which is decided by the degree of multiprogramming Which job or jobs to accept and turn into(转化为) processes. Decided by scheduling algorithm, e.g. FCFS\ SJF hrR etc When to invoke the long-term scheduler? States of Job: admit, execution finish PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Two problems for long-term scheduling(p381) ❖ Decide the number of processes that OS can take on, which is decided by the degree of multiprogramming. ❖ Which job or jobs to accept and turn into(转化为) processes. ٭ Decided by scheduling algorithm,e.g. FCFS、SJF、 HRRN etc… ❖ When to invoke the long-term scheduler? ❖ States of Job: admit, execution, finish

Medium-term scheduling (p383) ☆ Part of the swapping function(交换功能). Choose processes in disk to swap in for execution. PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Medium-term scheduling(p383) ❖ Part of the swapping function(交换功能). Choose processes in disk to swap in for execution

Short-term scheduling(p383) ☆ Known as the dispatcher(分派器), executes most frequently and makes the fine-grained( EE)decision of which process to execute next. ☆ The event to invoked(引起) the short-term scheduling Clock interrupt s yO interrupts perating system calls gnals(信号) PROCESSES AND SCHEDULING
PROCESSES AND SCHEDULING Short-term scheduling(p383) ❖ Known as the dispatcher(分派器), executes most frequently and makes the fine-grained(细粒度) decision of which process to execute next. ❖ The event to invoked(引起) the short-term scheduling ٭ Clock interrupts ٭ I/O interrupts ٭ Operating system calls ٭ Signals (信号)
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《机器学习》课程教学资源(PPT课件讲稿)第四章 决策树.pptx
- 《操作系统》课程PPT教学课件(讲稿)单处理机调度 UNIPROCESSOR SCHEDULING.ppt
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)第五章 分布式资源管理.ppt
- 合肥工业大学:《计算机网络技术》课程教学资源(PPT课件讲稿)第2章 IP网络基础.pptx
- 湖南生物机电职业技术学院:《电子商务概论》课程教学资源(PPT课件)第四章 电子商务的其它应用.ppt
- 《计算机组成原理》课程教学资源(PPT课件讲稿)第四章 存储器和存储系统.ppt
- 江苏大学:《面向对象建模技术》课程教学资源(PPT课件讲稿)第3章 类图、对象图和包图(主讲:林琳).ppt
- Trichromatic Online Matching in Real-time Spatial Crowdsourcing.pptx
- 《计算机文化基础 Computer Culture Foundation》课程教学资源(实验教学大纲).pdf
- 南京航空航天大学:《数据结构》课程教学资源(PPT课件讲稿)第三章 栈和队列.ppt
- 电子科技大学:《现代密码学》课程教学资源(PPT课件讲稿)第5章 数字签名.ppt
- 《局域网组建与管理》课程教学资源(PPT课件讲稿)第五章 组建家庭或学生宿舍局域网.ppt
- 《Web编程实用技术》课程教学课件(网站开发)第2章 静态网页开发技术.ppt
- 《软件工程导论》课程教学资源(PPT课件讲稿)第10章 面向对象的分析.ppt
- 《计算机组成原理》课程教学资源(PPT课件讲稿)第11章 设备管理 Device Management.ppt
- MSC Software Corporation:Modeling and Simulation of Fluid Power Systems Using MSC.EASY5.ppt
- 《计算机网络》教程资源(PPT课件讲稿)第13章 IPv6协议.ppt
- 《微机原理与接口技术》课程教学资源(PPT课件讲稿)第2章 AT89S52单片机硬件结构.ppt
- 香港科技大学:Overview of the Internet of Things(IoTs).ppsx
- 上海立信会计金融学院:《机器学习与金融应用实践 Machine Study and Financial Practice》课程教学资源(教学大纲).pdf
- 《信息安全概论》课程教学资源(PPT课件讲稿)第8章 操作系统安全.ppt
- 管理Windows 2000 Server服务器(PPT课件讲稿).ppt
- 《Java程序开发》课程教学资源(PPT课件讲稿)第4章 面向对象(基础篇).ppt
- 厦门大学:《大数据技术原理与应用》课程教学资源(PPT课件讲稿,2017)第6章 云数据库.ppt
- 西安交通大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)复习纲要(主讲:桂小林).ppt
- 西安交通大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第1章 微机系统概论(2013).ppt
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)分布式系统的同步(3.3-3.5).ppt
- 西华大学:《电子商务概论》课程教学资源(PPT课件讲稿)第3章 电子商务的技术基础.ppt
- 《计算机网络》课程电子教案(PPT教学课件讲稿,共十章).ppt
- 《数据库原理与应用》课程教学资源(PPT课件讲稿)第2章 关系数据库数学模型.ppt
- 《网站设计与建设》课程PPT教学课件(Website design and developments)第二部分 网站规划 第9章 软件平台规划.ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第五章 树及二叉树.ppt
- 江苏大学:《面向对象建模技术》课程教学资源(PPT课件讲稿)第1章 UML与面向对象(主讲:林琳).ppt
- 《计算机文化基础》课程教学课件(PPT课件讲稿)第一章 信息技术与计算机文化.ppt
- 南京航空航天大学:《数据结构》课程教学资源(PPT课件讲稿)第二章 线性表.ppt
- 《多媒体技术》课程教学资源(PPT课件讲稿).ppt
- 西安电子科技大学:《现代操作系统》课程PPT教学课件(讲稿)作业管理 Job Management.ppt
- 四川大学:《数据结构》课程教学资源(PPT课件讲稿)第七章 查找 Search.ppt
- 西安电子科技大学:《操作系统 Operating Systems》课程教学资源(PPT课件讲稿)Chapter 01 Introduction(主讲:高海昌).ppt
- Generic Programming(PPT课件讲稿)Templates and Overloading.ppt