-
由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(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
- 2023-01-17 10:50:04下载
- 积分:1
-
嵌入式WINCE开发入门程序,用EVC写的第一程序,帮助初学者入门
嵌入式WINCE开发入门程序,用EVC写的第一程序,帮助初学者入门-Embedded WINCE development of entry procedures, use of EVC wrote the first program to help beginners and entry-
- 2022-02-13 04:47:51下载
- 积分:1
-
自己以前做的汇编小程序,希望对大家有用。
自己以前做的汇编小程序,希望对大家有用。-A compilation of their previous small program to do the hope that useful for everyone.
- 2023-03-11 17:30:04下载
- 积分:1
-
多文档多文件类型程序演示
多文档多文件类型程序演示-more documentation procedures more file types demo
- 2022-02-13 02:56:42下载
- 积分:1
-
初始油藏网格数较多,如何根据需要提取自己需要的网格参数呢?这是一值得一看的程序...
初始油藏网格数较多,如何根据需要提取自己需要的网格参数呢?这是一值得一看的程序-initial reservoir grid few more, how to extract their own needs, the need Grid parameters? This is an eye-catcher procedures
- 2023-09-08 20:40:02下载
- 积分:1
-
基于WinCE 5.0 下的MIPS 32 内核的Au1200(AMD)的UART驱动,支持数据流控,经车载平台测试性能稳定,传输数据率高...
基于WinCE 5.0 下的MIPS 32 内核的Au1200(AMD)的UART驱动,支持数据流控,经车载平台测试性能稳定,传输数据率高
- 2022-08-20 23:06:01下载
- 积分:1
-
分形图的实现:c++源代码,分形树由递归算法生成。
分形图的实现:c++源代码,分形树由递归算法生成。-Fractal graphic sample
- 2022-03-20 11:38:58下载
- 积分:1
-
模板模式vc源码实例。
模板模式vc源码实例。-Design Modules of VC and Source Code/Example
- 2022-07-09 04:03:46下载
- 积分:1
-
espeak要用源代码
我用过的,很好用
espeak要用源代码
我用过的,很好用 -espeak to use the source code I used, very good use
- 2022-01-26 00:07:18下载
- 积分:1
-
microsoft bootvis.zip
microsoft bootvis.zip
- 2022-07-24 09:34:00下载
- 积分:1