- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
(5 points)There exist two processes P1 and P2 in a multiprogramming batch system. P2 enters into the system 10ms later than P1, and their executing traces, i.e. alternating sequences of CPU bursts and I/O bursts, are as follows:
P1: computing, 80ms → I/O operation, 100ms → computing, 40ms
P2: computing, 130ms → I/O operation, 50ms → computing, 50ms
It is assumed that time costs of CPU scheduling and process switch are omitted, what is the maximal throughput for completing these two processes, and why?
Answers:
1. 最大吞吐量 = 2/(80+130+50+50) = 2/310= 1/155 个/ms (3 points)
2. 当P1、P2的CPU计算和I/O操作最大程度并行执行时,2个进程总的执行时间最短,系统吞吐量达到最大,如下图所示;(2 points)
In a computer system, the users submit to the system their computational tasks as jobs, and all these jobs are then stored as the standby jobs on the disk.
The job scheduler (also known as long-term scheduler) selects the standby jobs on the disk, creates new processes in memory for them, and then starts executing of these processes. Each job’s ID is the same as that of the process created for it, for example, Ji and Pi.
When the number of concurrent processes in memory is lower than three, the job scheduler takes the FCFS algorithm to select a standby job on the disk to create a new process. Otherwise, the jobs should wait on the disk.
For the processes in memory, the process scheduler (also known as short-term scheduler) takes the non-preemptive priority-based algorithm to select a process and allocates the CPU to it.
It is assumed the system costs resulting from job and process scheduling are omitted.
Consider the following set of Jobs J1, J2, J3 , J4 and J5. For 1≤ i ≤5, the arrival time of each Ji , the length of the CPU burst time of each process Pi, and the priority number for each Ji/Pi are given as below, and a smaller priority number implies a higher priority.
Job Arrival Time Burst Time Priority Number
(minute)
J1 14:00 40 4
J2
您可能关注的文档
- #1机励磁参数测试分析报告精要.doc
- #3机海水升压泵电动机检修文件包精要.doc
- #4炉本体照明改造精要.doc
- (12月第6辑)2015年高考语文作文备考素材集锦“光明百家争鸣”精要.doc
- (2014秋)人教版九年级化学上册第六单元《碳和碳的氧化物》测试题(含答案)精要.doc
- (2014秋开学)人教版物理八年级上册第五章透镜及其应用单元测试题及答案精要.doc
- (2015新教材版)第三章理财投资市场概述精要.doc
- (2016年)电大专科经济法概论(经济法律基础)案例分析题(全)精要.doc
- (北师大)九年级上册历史课后练习答案精要.doc
- (东莞2014版)建筑工程材料送检标准表精要.doc
文档评论(0)