- 1、本文档共81页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
操作系统概念(英文)——5-13
October 2013 Operating System Concepts-Chapter 6 CPU Scheduling - Chapter 5CPU Scheduling An Introduction to Chapter 5 Basic issues about scheduling (§5.1) Is a scheduling algorithm good or bad ? scheduling criteria (§5.2) evaluation methods (§5.7) Several basic algorithms/mechanisms (§5.3) Scheduling in Multiple-Processor Systems (§5.4) Thread scheduling (§5.5) Case studies scheduling in modern OS (§5.6): Linux, Solaris 2 , Windows XP §5.1 Basic Concepts 5.1.1 CPU scheduling The procedure of selecting running entities in main memory ( i.e., processes or threads in the ready queue) according to some criteria, allocating CPU to the selected running entities, and then enabling them to run on CPU selecting + allocating + enabling 5.1 Basic Concepts (cont.) 5.1.2 The cycle of process execution Process execution consists of a cycle of CPU execution and I/O wait, i.e., CPU burst and I/O burst e.g. Fig.5.1 When a CPU burst occurs, the process is in the running state; When a I/O burst occurs, the process is in the waiting state CPU-burst times distribution, Fig.5.2 Fig. 5.1 Alternating Sequence of CPU And I/O Bursts Fig. 5.2 CPU burst distribution —— histogram of CPU- burst Times 5.1.2 The Cycle of Process Execution (cont.) CPU-bound process might have a few very long CPU bursts I/O-bound process might have many very short CPU bursts and some long I/O bursts. 5.1.3 Who conduct CPU Scheduling As components of OS, scheduler (§5.1.2) and dispatcher (§ 5.1.4, 分配器,调度器)are responsible for CPU scheduling The (short-term ) scheduler is responsible for CPU scheduling selects from the processes in memory that are ready to execute — on the basis of scheduling algorithms allocates the CPU to one of them /*组织和维护(就绪)进程/线程队列 The dispatcher gives control of the CPU to the process selected by the scheduler, i.e. starts the selected process: process context switching switching to user mode jumping to the proper location in the user program to res
文档评论(0)