- 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 调
您可能关注的文档
最近下载
- CJ_T 123-2016 给水用钢骨架聚乙烯塑料复合管.docx VIP
- 哲学与人生第5课第二框课件《用发展的观点处理人生的问题》.pptx VIP
- 双梁桥式起重机结构设计--毕业论文设计.doc VIP
- 2025年保安员(初级)证考试试题库(答案+解析).docx
- 中医科会诊单.docx VIP
- 《猜猜他是谁》三年级作文,300字的优秀作文.doc VIP
- 课题申报书:基于项目化学习的小学劳动教育跨学科实施研究.docx
- 《石灰工业大气污染物排放标准》DB13 1641-2025.docx VIP
- 绿色水浒传之鲁智深人物介绍PPT模板.pptx
- 招商银行2025秋招笔试真题试卷及答案解析 .pdf VIP
文档评论(0)