- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2.JOB PROCESS AND THREAD
JOB JOB is a program entity in memory that has a independent logic meaning and can operate in computer JOB JCB +PROGRAM +DATA PROCESS PCB +PROGRAM +DATA PROCESS PROCESS is the running process of a process entity. It’s a independent basic unit of operation and resource request in computer. 2.PROCESS Who can schedule a process? System How to schedule a process? Search all ready processes; Running scheduling algorithm to determine which process should be dispatched CPU; Change the status of this process; Dispatch CPU to this process. 2.PROCESS 2) Least Laxity First (LLF)(最低松弛度优先算法) The correct graph 2.PROCESS Exercise Scheduling- process scheduling 带权周转时间 周转时间 进程 到达时间 服务时间 最晚完成截止时间 最晚开始截止时间 松弛度 开始时间 结束时间 平均周转时间 A 0 10 15 B 3 12 30 带权平均周转时间 C 9 11 50 D 12 7 42 2.PROCESS Scheduling- process scheduling 2.43 2.82 1.58 1 带权周转时间 17 31 19 10 周转时间 进程 到达时间 服务时间 最晚完成截止时间 最晚开始截止时间 松弛度 开始时间 结束时间 平均周转时间 A 0 10 15 5 5 0 10 15.4 B 3 12 30 18 8 10 22 带权平均周转时间 C 9 11 50 39 10 29 40 1.57 D 12 7 42 35 13 22 29 Exercise 2.PROCESS Scheduling- static process scheduling Static process scheduling Static process scheduling is to determine which suspended process in external storage will be active Call Static process scheduling as middle-distance scheduling or middle-level scheduling 2.PROCESS The model of scheduling queue Only process scheduling (corresponding the three status model of process) Scheduling- process scheduling 2.PROCESS The model of scheduling queue Included process scheduling and job scheduling (corresponding the first five status model of process) Scheduling- process scheduling 2.PROCESS The model of scheduling queue Included process scheduling and job scheduling and middle distance scheduling (corresponding the seven status model of process) Scheduling- process scheduling 2.PROCESS Example job input a, b; x=a+b; ouput x Inter-process communication process1 input a, b process2 x=a+b process3 ouput x process1 process2 process3 a, b x 2.PROCESS Inte
文档评论(0)