- 1、本文档共35页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
Principlesof
OperatingSystemCPUScheduleⅠ
2024/5/29MadebyNajun2RoadmapBasicConceptsSchedulingCriteriaSchedulingAlgorithmsMultiple-ProcessorSchedulingReal-TimeSchedulingAlgorithmEvaluation
2024/5/29MadebyNajun3BasicConceptsMaximumCPUutilizationobtainedwithmultiprogrammingCPU–I/OBurstCycleProcessexecutionconsistsofacycleofCPUexecutionandI/Owait.
2024/5/29MadebyNajun4HistogramofCPU-burstTimes
2024/5/29MadebyNajun5CPUSchedulerCPUscheduler(orshort-termscheduler)selectsaprocessfromprocessesinmemorythatarereadytoexecute,andallocatestheCPUtoit.Theshort-termschedulermustselectaprocessfortheCPUfrequently.Becauseofthebrieftimebetweenexecutions,theshort-termschedulermustbefast.
2024/5/29MadebyNajun6CPUScheduler(cont.)CPUschedulingdecisionsmaytakeplacewhenaprocess:1. Switchesfromrunningtowaitingstate.2. Switchesfromrunningtoreadystate.3. Switchesfromwaitingtoready.4. Terminates.Schedulingunder1and4isnonpreemptive.Allotherschedulingispreemptive.
2024/5/29MadebyNajun7DispatcherDispatchermodulegivescontroloftheCPUtotheprocessselectedbytheshort-termscheduler;thisinvolves:switchingcontextswitchingtousermodejumpingtotheproperlocationintheuserprogramtorestartthatprogramDispatchlatency–timeittakesforthedispatchertostoponeprocessandstartanotherrunning.
2024/5/29MadebyNajun8RoadmapBasicConceptsSchedulingCriteriaSchedulingAlgorithmsMultiple-ProcessorSchedulingReal-TimeSchedulingAlgorithmEvaluation
2024/5/29MadebyNajun9SchedulingCriteriaCPUutilization–keeptheCPUasbusyaspossibleThroughput–thenumberofprocessesthatcompletetheirexecutionpertimeunitTurnaroundtime–amountoftimetoexecuteaparticularprocessWaitingtime–amountoftimeaprocesshasbeenwaitinginthereadyqueueResponsetime–amountoftimeittakesfromwhenarequestwassubmitteduntilthefirstresponsei
您可能关注的文档
- 文案hais food msdn bhd编号-twhite bee hoonpssasiajoy白米粉.pdf
- 寮步金兴路-lte三期共站爱立信机房.pdf
- 人教版(2019)必修第一册LanguagesaroundtheworldReadingandThinking课件(共27张PPT).pdf
- 人教版(2019)必修第一册NaturaldisastersListeningandspeaking课件(共26张PPT).pdf
- 人教版(2019)选择性必修3Unit5PoemsReadingandThinking课件(共31张PPT).pdf
- 九年级化学下册专题二第1讲置换反应习题课件沪教版.pdf
- 高二上学期物理人教版(2019)必修第三册课件9-3电场强度.pdf
- 人教版八年级下册2-2设计纺样课件.pdf
- 人教版(2019)必修第二册MusicDiscoveringUsefulStructures课件(共33张PPT).pdf
- 人教版(2019)选择性必修第三册PoemsDiscoveringusefulstructures定语从句复习课件(共35张PPT).pdf
- 九年级化学下册第9章化学与社会发展第2节新型材料的研制课件沪教版.pdf
- 人教版八年级下册2-1了解纺样课件.pdf
- 人教版(2019)选择性必修第四册LaunchingYourCareerReadingandThinking课件(共22张PPT).pdf
- 人教版(2019)选择性必修四SeaExplorationAssessingYourProgress课件(共19张PPT).pdf
- 人教版(2019)必修第三册FestivalsandCelebrationsListeningandspeaking课件(共23张PPT).pdf
- 九年级化学下册专训4实验方案的设计与评价习题课件沪教版.pdf
- 九年级化学下册专题三第3讲氢氧化钠等物质变质的探究习题课件沪教版.pdf
- 九年级化学下册专题四第1讲化学与降习题课件沪教版.pdf
- 《谏太宗十思疏》《答司马谏议书》群文阅读+课件++2023-2024学年统编版高中语文必修下册.pdf
- Unit+3+The+world+online+单词讲解课件+-2023-2024学年高中英语译林版(2020)必修第三册.pdf
文档评论(0)