- 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 调
您可能关注的文档
最近下载
- 江苏省梅村高级中学2022年物理高一年级上册期末经典试题含解析.pdf VIP
- GB∕T 50298-2018 风景名胜区总体规划标准.docx VIP
- 2024-2025学年江苏省无锡市滨湖区梅村高级中学空港分校高一(上)期中物理试卷(含答案).docx VIP
- 2024—2025学年江苏省梅村高级中学高一上学期期中检测化学试卷.doc VIP
- 2023-2024学年江苏省无锡市梅村高级中学高一(上)期中数学试卷【答案版】.docx VIP
- 上海三菱电梯LEHY-IIC维修资料LEHYⅡC慢车⒈对线路进行.DOC VIP
- 2024-2025江苏无锡梅村高级中学高一(上)期中数学试卷【答案版】.pdf VIP
- 上消化道出血应急预案流程图[实用].docx VIP
- 2021年7月10日四川广元昭化区部分事业单位考试《综合知识》精选题.pdf VIP
- 三菱电梯LEHY(C) LEHY-III LEHY-MRL电梯安装调试培训资料(2).pptx VIP
有哪些信誉好的足球投注网站
文档评论(0)