C++实现CPU调度算法先来先服务(FCFS),非抢占最短作业优先调度(SJF),优先级调度,时间片轮转调度(RR)并输出相应的平均等待时间和平均周转时间。

上传者: Ling_m_m | 上传时间: 2021-06-06 21:00:49 | 文件大小: 7.38MB | 文件类型: RAR
分别使用FCFS、SJF(非抢占)、优先级调 度(非抢占)、RR四种调度算法来模拟CPU 调度的过程。 • 输入:存储需要调度的作业信息的job.txt文 档 • 输出:每个作业的编号、作业开始执行时间、作业结束时间以及该调度算法的平均等待时间、平均周转时间。 1. job.txt说明: 第一行:作业数 轮转片大小 第二行以后:作业编号 到达时间 执行时间 优先级 2. 输出说明: FCFS: 作业编号 开始执行时间 结束时间 …… …… …… Average waiting time: 平均等待时间 Time for Average Turnaround : 平均周转时间 SJF(非抢占): 作业编号 开始执行时间 结束时间 …… …… …… Average waiting time: 平均等待时间 Time for Average Turnaround : 平均周转时间 ……

文件下载

资源详情

[{"title":"( 25 个子文件 7.38MB ) C++实现CPU调度算法先来先服务(FCFS),非抢占最短作业优先调度(SJF),优先级调度,时间片轮转调度(RR)并输出相应的平均等待时间和平均周转时间。","children":[{"title":"调度算法","children":[{"title":".vs","children":[{"title":"Project3","children":[{"title":"v16","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"dd439548c3aaa450","children":[{"title":"源.ipch <span style='color:#111;'> 33.63MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 7.32MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"源.obj <span style='color:#111;'> 346.53KB </span>","children":null,"spread":false},{"title":"Project3.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"Project3.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"Project3.lastbuildstate <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 12.74KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 780B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"vc142.pdb <span style='color:#111;'> 444.00KB </span>","children":null,"spread":false},{"title":"Project3.exe.recipe <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"Project3.exe <span style='color:#111;'> 124.50KB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 155.00KB </span>","children":null,"spread":false},{"title":"Project3.pdb <span style='color:#111;'> 2.65MB </span>","children":null,"spread":false},{"title":"Project3.ilk <span style='color:#111;'> 854.18KB </span>","children":null,"spread":false},{"title":"Project3.log <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true},{"title":"Project3.sln <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"源.cpp <span style='color:#111;'> 10.22KB </span>","children":null,"spread":false},{"title":"Project3.vcxproj <span style='color:#111;'> 7.02KB </span>","children":null,"spread":false},{"title":"job.txt <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"Project3.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"Project3.vcxproj.filters <span style='color:#111;'> 965B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • weixin_44866598 :
    用户下载后在一定时间内未进行评价,系统默认好评。
    2021-07-02
  • weixin_45760424 :
    用户下载后在一定时间内未进行评价,系统默认好评。
    2021-06-17
  • lycldn :
    用户下载后在一定时间内未进行评价,系统默认好评。
    2021-06-17

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明