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

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

于 2023-01-17 发布 文件大小:2.29 kB
0 180
下载积分: 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 个回复

  • des加密算法的源代码,有要加密的快来把 这代码很好的
    des加密算法的源代码,有要加密的快来把 这代码很好的-des encryption algorithm source code, encryption Come to this code of good
    2023-05-29 19:25:03下载
    积分:1
  • 一个简单的树形程序
    一个简单的树形程序-a simple procedure tr
    2022-03-04 11:34:41下载
    积分:1
  • DX Dragon book whole source code
    DX龙书的全书代码.经典之作,适合开发DX的程序员-DX Dragon book whole source code
    2023-06-11 16:55:03下载
    积分:1
  • CUDA FFT,实现OcenFFT参考代码
    代码用于实现OcenFFT,GPU实现FFT的过程,相比CPU的C语言速度至少提升一个数量级,可实现二位的FFT,得到实时动态的二维海面
    2022-02-25 10:06:42下载
    积分:1
  • 零售药房的应用
    retail pharmacy application
    2022-03-12 10:06:39下载
    积分:1
  • DES密码的实验报告,包括流程图以及简要说明
    DES密码的实验报告,包括流程图以及简要说明-DES password experimental report, including the flow chart, as well as a brief description of
    2023-08-10 08:30:02下载
    积分:1
  • 主要介绍打开文件对话框,实现对图象,文本等预览。
    主要介绍打开文件对话框,实现对图象,文本等预览。-introduces open file dialog to achieve right image, text, etc. preview.
    2022-06-30 04:27:50下载
    积分:1
  • P I N G T U
    拼                                                                                                                                                                                                          图
    2022-11-27 14:05:03下载
    积分:1
  • 获取word每页缩略图
     private void ConvertToImage(string wordInputPath, int resolution)         {             try             {                 Aspose.Words.Document doc = new Aspose.Words.Document(wordInputPath);                 if (doc == null)                 {                     return;                 }               
    2022-07-13 14:38:36下载
    积分:1
  • 操作系统的实验:如何理由银行家算法避免死琐,本程序详细地实现算法...
    操作系统的实验:如何理由银行家算法避免死琐,本程序详细地实现算法-experimental operating system : how to avoid algorithm reason bankers admit death, the procedures detailed algorithm
    2022-07-07 05:44:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载