登录
首页 » Windows开发 » 由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(1...

由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(1...

于 2023-01-17 发布 文件大小:2.29 kB
0 103
下载积分: 2 下载次数: 1

代码说明:

由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(1-10秒)和进程优先级 (1-10,10最高1最低)由程序随机产生,进程有2种状态就绪状态(Ready)和完成状态(Complete)首先根据优先级对进程进行排序,再根据优先级分配时间片运行每次分给进程的时间片为1秒,运行完后需运行时间减1优先级减1转下一个进程。如果进程已经完成就插入到完成队列,如果没有完成就重新插入到就绪队列中的正确位置 程序有两种运行方式: 1、可以直接给出最后的运行结果,进程最后的优先级、 运行完每一个进程的时间及完成进程的总时间,进程最后的状态。 2、可以选择自动运行,过程中显示每一次调度信息包括本次调度进程完成队列信息就绪队列信息等*/ -Process user input from a number of systems (up to 50 processes) to simulate priority scheduling algorithm is the assumption that the process of arrival at the same time CPU, the process of run-time (1-10 seconds) and the process priority class (1-10,10 highest minimum 1) randomly generated by the process, the process has two kinds of status status ready (Ready) and achieve status (Complete) First of all, the process in accordance with the priority ranking, and distribution in accordance with the priority of each time slice to run to the process time slice for the second one, to be run after run-time priority class minus one minus one to t

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C 6.0 Directory five, six chapters source examples. Through debugging
    C++6.0教程五,六章源程序实例.已经通过调试-C 6.0 Directory five, six chapters source examples. Through debugging
    2023-03-22 21:00:04下载
    积分:1
  • 算出access数据库密码,包括97和2000版本!
    算出access数据库密码,包括97和2000版本!-Calculate the access database password, including the 97 and 2000 versions!
    2022-02-20 12:49:31下载
    积分:1
  • this simple code ro copy all data in removable disk to Hardisk if in PC has dete...
    this simple code ro copy all data in removable disk to Hardisk if in PC has detected any Flash disk or removable disk plug in PC
    2022-05-15 03:31:59下载
    积分:1
  • 2022-08-09 21:48:51下载
    积分:1
  • 磁盘文件的查找sam_sp_53
    磁盘文件的查找sam_sp_53-disk document search sam_sp_53
    2022-02-16 01:29:28下载
    积分:1
  • 孙鑫第十二课教程文件存取源码
    孙鑫第十二课教程文件存取源码,经过测试,可以读取二进制文件,当做自己的复制函数使用
    2022-05-19 09:47:29下载
    积分:1
  • 请认真阅读您的文件包和描述,它至少有40字节的英文。
    Please read your package and describe it at least 40 bytes in English. System will automatically delete the directory of debug and release, so please do not put files on these two directory.
    2022-02-15 08:48:55下载
    积分:1
  • 图书馆管理系统
    应用背景这是一个初学者的编程项目有关C++。一个图书馆管理系统包括技术文件处理,结构,数组,指针等。这个程序给了我们作为一个项目,希望它可以帮助万人理解的概念构建管理系统的基本概念的C / C + +语言 ; ; ; ;关键技术本程序是用DEV C++开发。运行在所有的C / C + +开发环境的支持。这个程序保持图书记录的管理系统即豆腐创造更新,删除,删除的基本概念,
    2022-01-25 22:49:06下载
    积分:1
  • 一个躲炸弹的小游戏,类似手机上的那种,环境VS2005
    一个躲开炸弹的小游戏,类似手机上的那种,环境VS2005-a small bomb to escape the game, similar to the kind of phone, the environment VS2005
    2022-05-17 13:08:42下载
    积分:1
  • 百行代码实现的WEB服务器
    百行代码实现的WEB服务器 aardio开发环境         服务器响应后各种处理步骤:       第一步,通过获取到的 请求响应request对象的url属性,分解出url中的path。         第二步,将path传去路由函数,为了获取 目标路径、目标文件类型、错误标记、错误页面 等结果。            第三步,依据路由函数返回的结果。              回复对象的contentType属性设置为路由函数返回的目标文件类型。               回复对象的传送数据:错真就传错误页面,错假就传目标文件的二进制数据 。               回复对象的其他属性按simpleHttpServer内置默认的。
    2022-05-27 22:20:36下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载