欢迎来到天天文库
浏览记录
ID:52253624
大小:281.57 KB
页数:30页
时间:2020-03-25
《中科大操作系统原理与实现课件3_Processes1.pdf》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、操作系统原理与设计第3章Processes(进程)2陈香兰中国科学技术大学计算机学院2009年09月01日......提纲ProcessSchedulingProcessSchedulingQueuesSchedulersContextSwitchOperationonprocessesProcessCreationProcessTermination小结和作业......OutlineProcessSchedulingProcessSchedulingQueuesSchedulersContextSwitchOperationonprocessesProcess
2、CreationProcessTermination小结和作业......ProcessSchedulingTheobjectiveofmultiprogramming:???Theobjectiveoftimesharing:???Whatthesystemneed?theprocessschedulerselectsanavailableprocesstoexecuteontheCPU.......ProcessSchedulingTheobjectiveofmultiprogramming:???Theobjectiveoftimesharing:???Wh
3、atthesystemneed?theprocessschedulerselectsanavailableprocesstoexecuteontheCPU.......ProcessSchedulingQueuesProcessesmigrateamongthevariousqueuesIJobqueue–setofallprocessesinthesystemIReadyqueue–setofallprocessesresidinginmainmemory,readyandwaitingtoexecuteIDevicequeues–setofprocessesw
4、aitingforanI/Odevice......ReadyQueueAndVariousI/ODeviceQueues......RepresentationofProcessSchedulingIaqueueingdiagram......OutlineProcessSchedulingProcessSchedulingQueuesSchedulersContextSwitchOperationonprocessesProcessCreationProcessTermination小结和作业......SchedulersILong-termschedule
5、r(orjobscheduler)IselectswhichprocessesshouldbebroughtintothereadyqueueShort-termscheduler(orCPUscheduler)IselectswhichprocessshouldbeexecutednextandallocatesCPU......Theprimarydistinctionbetweenlong-term&short-termschedulersIITheprimarydistinctionbetweenlong-term&short-termschedulers
6、liesinfrequencyofexecutionIShort-termschedulerisinvokedveryfrequently(UNIT:ms)(mustbefast)ILong-termschedulerisinvokedveryinfrequently(UNIT:seconds,minutes)(maybeslow)IWHY?IThelong-termschedulercontrolsthedegreeofmultiprogrammingIthenumberofprocessesinmemory.Istable?......Theprimary
7、distinctionbetweenlong-term&short-termschedulersIIIProcessescanbedescribedaseither:I/O-boundprocessIspendsmoretimedoingI/Othancomputations,manyshortCPUburstsCPU-boundprocessIspendsmoretimedoingcomputations;fewverylongCPUburstsIIMPORTANTforlong-termscheduler:IAgoodprocessmixofI/O-bound
8、andCP
此文档下载收益归作者所有