中科大操作系统原理与实现课件5_CPU_Scheduling1.pdf
《中科大操作系统原理与实现课件5_CPU_Scheduling1.pdf》由会员分享,可在线阅读,更多相关《中科大操作系统原理与实现课件5_CPU_Scheduling1.pdf(31页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、.操作系统原理与设计第5章 CPU Scheduling II陈香兰中国科学技术大学计算机学院2009年09月01日.提纲Multiple-Processor SchedulingReal-Time SchedulingOS examplesAlgorithm Evaluation小结和作业.OutlineMultiple-Processor SchedulingReal-Time SchedulingOS examplesAlgorithm Evaluation小结和作业.Multiple-Processor SchedulingIOne single processor multiple
2、CPUSICPU scheduling more complexILoad sharingITo be simple,supposeIthe processors are identical homogeneous in terms oftheir functionalityIso,any processor can execute any process in the queue.Approches to Multiple-Processor SchedulingIAsymmetric multiprocessing only one processor accessesthe system
3、 data structures,alleviating the need for datasharingISymmetric multiprocessingIone common ready queue,orIone private ready queue for each processor.Processor AffinityIMigration of processes from one processor to anotherprocessor COSTs much.IFor example:cacheImost SMP systems try to avoid such migra
4、tionIProcessor affinity:a process has an affinity for the processor on which it iscurrently running.ISOFT affinity VS.HARD affinity.Load BalancingILoad balanceing attempts to keep the workload evenlyIfor SMP system with one private ready queue for eachprocessorItwo general approachesIpush migrationI
5、pull migrationoften works together in load balancing systemsIload balancing VS.processor affinity.Symmetric Multithreading IIINTEL:hyperthreading technology(HT)Ilogical processors VS.physical processorsIeach logical processor has its own architecture state,including general-purpose registers and mac
6、hine-state registers,and interruptsIshare:cache memory and buesesI?from the viewpoint of OS?.OutlineMultiple-Processor SchedulingReal-Time SchedulingOS examplesAlgorithm Evaluation小结和作业.Real-Time Scheduling.IHard real-time systems required to complete a criticaltask within a guaranteed amount of tim
7、eISoft real-time computing requires that critical processesreceive priority over less fortunate onesIOS1.priority scheduling2.short dispatch latencyIapproaches for short dispatch latency1.preemption1.1 preemption point(抢占点)in system calls with long period1.2 preemptible kernel2.priority inversion2.1
8、 priority-inheritance protocol2.2 priority-ceiling protocol.dispatch latencyconflicts=preemption+resource releasing by processes with lowerpriority.OutlineMultiple-Processor SchedulingReal-Time SchedulingOS examplesAlgorithm Evaluation小结和作业.OS examplesIREADINGISolaris(thread)IWindows(thread)ILinux(p
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 中科大 操作系统 原理 实现 课件 _CPU_Scheduling1
限制150内