中科大操作系统原理与实现课件3_Processes1.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《中科大操作系统原理与实现课件3_Processes1.pdf》由会员分享,可在线阅读,更多相关《中科大操作系统原理与实现课件3_Processes1.pdf(30页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、.操作系统原理与设计第3章 Processes(进程)2陈香兰中国科学技术大学计算机学院2009年09月01日.提纲Process SchedulingProcess Scheduling QueuesSchedulersContext SwitchOperation on processesProcess CreationProcess Termination小结和作业.OutlineProcess SchedulingProcess Scheduling QueuesSchedulersContext SwitchOperation on processesProcess Creation
2、Process Termination小结和作业.Process SchedulingThe objective of multiprogramming:?The objective of time sharing:?What the system need?the process scheduler selects an available process to execute on theCPU.Process SchedulingThe objective of multiprogramming:?The objective of time sharing:?What the syste
3、m need?the process scheduler selects an available process to execute on theCPU.Process Scheduling QueuesProcesses migrate among the various queuesIJob queue set of all processes in the systemIReady queue set of all processes residing in main memory,ready and waiting to executeIDevice queues set of p
4、rocesses waiting for an I/O device.Ready Queue And Various I/O Device Queues.Representation of Process SchedulingIa queueing diagram.OutlineProcess SchedulingProcess Scheduling QueuesSchedulersContext SwitchOperation on processesProcess CreationProcess Termination小结和作业.Schedulers ILong-term schedule
5、r(or job scheduler)Iselects which processes should be brought into the readyqueueShort-term scheduler(or CPU scheduler)Iselects which process should be executed next and allocatesCPU.The primary distinction between long-term&short-termschedulers IIThe primary distinction between long-term&short-term
6、schedulers lies in frequency of executionIShort-term scheduler is invoked very frequently(UNIT:ms)(must be fast)ILong-term scheduler is invoked very infrequently(UNIT:seconds,minutes)(may be slow)IWHY?IThe long-term scheduler controls the degree ofmultiprogrammingIthe number of processes in memory.I
7、stable?.The primary distinction between long-term&short-termschedulers IIIProcesses can be described as either:I/O-bound processIspends more time doing I/O than computations,many shortCPU burstsCPU-bound processIspends more time doing computations;few very long CPUburstsIIMPORTANT for long-term sche
8、duler:IA good process mix of I/O-bound and CPU-bound processes.IThe long-term scheduler may be absent or minimalIUNIX,MS Windows,.IThe stability depends on.The primary distinction between long-term&short-termschedulers IIIIphysical limitationIself-adjusting nature of human users.Addition of Medium T
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 中科大 操作系统 原理 实现 课件 _Processes1
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内