- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Chapter 5 CPU Scheduling_8266_2079_20110317120209
Chapter 5 CPU Scheduling LIU Duo bat@mail.tsinghua.edu.cn * 大纲规定的课程教学内容 了解处理器调度的准则、了解高级调度、中级调度、低级调度的概念与区别 了解实时调度与多处理机调度概念,掌握各种调度算法,理解调度的算法评估模型,了解进程调度与作业调度的区别 了解基于Unix或Linux或Solaris或Windows 2000/XP环境下调度算法 ?5.1 Basic Concepts Scheduling Long-Term Scheduling Determines which programs are admitted to the system for processing Controls the degree of multiprogramming Medium-Term Scheduling Part of the swapping function Based on the need to manage the degree of multiprogramming Short-Term Scheduling Known as the dispatcher Executes most frequently CPU Scheduling Earlier, we talked about the life-cycle of a process Active processes work their way from Ready queue to Running to various waiting queues. Question: How is the OS to decide which of several tasks to take off a queue? Obvious queue to worry about is ready queue Others can be scheduled as well, however Diagram of Process State CPU Scheduler Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them CPU scheduling decisions may take place when a process: 1. Switches from running to waiting state 2. Switches from running to ready state 3. Switches from waiting to ready 4. Terminates Scheduling under 1 and 4 (no choice in terms of scheduling) is nonpreemptive All other scheduling is preemptive Dispatcher Dispatcher module gives control of the CPU to the process selected by the short-term scheduler Dispatch latency – time it takes for the dispatcher to stop one process and start another running Scheduling Assumptions CPU scheduling is a big area of research in early 70’s Many implicit assumptions for CPU scheduling: One program per user One thread per program Programs are independent Scheduling Assumptions Clearly, these are unrealistic but they simplify the problem so it can be solved For instance: is “fair” about fairness among users or programs? If I run one compilation job and you run five, you get five times as much CPU on many operating systems The hig
您可能关注的文档
- 2014·新课标高考总复习·英语Book 2 板块四 Modules 6.ppt
- 2014·新课标高考总复习·英语Book 6 板块十二 Modules 6.ppt
- 2014·新课标高考总复习·英语Book 8 板块十六 Modules 4.ppt
- 2014届执信中学高三第二学期开学考试(英语).doc
- 201503八年下英语.ppt
- 2015年广东专版高考英语模拟冲刺试题(三) Word版含解析.doc
- 2016年中考英语一轮复习第11讲(人教版八年级下Units3~4).ppt
- 212TGp_WorldWide_light_v2.ppt
- 2_RDBMSintro CH2.ppt
- 2BUnit_4_In_the_park.ppt
文档评论(0)