- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[工学]chap4 中断和处理机调度
4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.1 中断 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 4.2 处理机调度 * 4.2.4 What is CPU scheduling? What is CPU scheduling? Determining which processes run when there are multiple runnable processes. Why is it important? Because it can have a big effect on resource utilization and the overall performance of the system. On most multitasking systems, only one process can truly be active at a time - the system must therefore share its time between the execution of many processes. This sharing is called scheduling. * 4.2.4 Scheduling Algorithms Queueing(排队)—This is appropriate for serial or batch jobs. There are two main ways of giving priority to jobs in a queue. First-Come First-Served (FCFS) , also as FIFO. Shortest Job First (SJF). Round-robin— This is the time-sharing approach in which several tasks can coexist. The scheduler gives a short time-slice(时间片) to each job round and round. These two categories are also referred to as non-preemptive and preemptive (剥夺)respectively. Strictly non-preemptive—Each program continues executing until it has finished, or until it must wait for an event (e.g. I/O or another task). Strictly preemptive —The system decides how time is to be shared between the tasks, and interrupts each process after its time-slice. It then executes another program for a fixed time and stops, then the next...etc. 4.3 实时调度 4.3 实时调度 结束时间Tc 开始时间Ts 服务时间Tr 到达时间Tin 作业 8 3 6 4 5 2 2 0 4 6 E C D A B 周转时间 T 带权周转时 间W 平均 SRT 调度算法 19 20 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 不同调度算法对同一个 作业/进程的性能比较 2.14 8.00 HRP 2 8 E 2.56 8.60 FCFS 1.84 7.60 SJF 1.59 7.20 SRT 5 6 D 4 4 C 6 2 B 3 0 A 从平均周转时间及其平均带权周转时间来看,SRT 好于前面的任何一个算法。 服务时间Tr 到达时间Tin 作业 4.2.3 调
您可能关注的文档
- [工学]5 土的力学性质.ppt
- [工学]5 接触网.ppt
- [工学]5 柴油机供给系统.ppt
- [工学]5 煤层气藏成藏机理.ppt
- [工学]5------第三章 连续LTI特征函数、傅里叶级数.pdf
- [工学]5 电动机3.ppt
- [工学]5---7---1高程控制网的建立与三角高程测量.ppt
- [工学]5 物 理 分 选2.ppt
- [工学]5-1、2和3 库仑定律 电场强度.ppt
- [工学]5-4复频域分析.ppt
- 2025至2030中国乘用车行驶记录仪行业市场占有率及有效策略与实施路径评估报告.docx
- 2026中国单车踏板行业营销态势与竞争策略分析报告.docx
- 唐山师范学院2024-2025学年《病理学》期末考试试卷(B卷)含参考答案.docx
- 2026中国正丙苯市场应用趋势分析与投资运行状况监测报告版.docx
- 企业管理与人力资源测试卷附答案.docx
- 唐山学院2024-2025学年《病理学》期末考试试卷(A卷)含参考答案.docx
- 唐山学院2024-2025学年《病理学》期末考试试卷(B卷)含参考答案.docx
- 天津财经大学2024-2025学年《病理学》期末考试试卷(A卷)附参考答案.docx
- 2026中国甲壳素肥料行业需求态势与投资效益预测报告.docx
- 道路旅客安全培训考核题课件.pptx
最近下载
- 黑龙江省中药材GAP基地自评价申报书、资料清单、现场检查评分表.doc VIP
- 中药材GAP基地自评价申报书.doc
- 全路旅客列车编组表.pdf
- 人教初中数学八上 《等边三角形(第1课时)》教案 (公开课获奖).doc VIP
- 2025年云南省初中学业水平考试指导丛书-道德与法治变化分析.pptx VIP
- 2025年云南省初中学业水平考试指导丛书·道德与法治内容提要.docx VIP
- 肺癌的多学科综合治疗模式.pptx VIP
- 八上名著阅读《红岩》.pdf
- 论企业文化与企业核心价值观的塑造.doc VIP
- 苏教版六年级数学上册第3课时 稍复杂的分数乘法实际问题(2)(教学课件).pptx VIP
原创力文档


文档评论(0)