-
由用户输入系统进程数(最多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
-
In the arm9 2440 test rtp protocol pc the receiving end, accept the development...
在arm9 2440 测试rtp协议的pc接收端,接受开发板传送的字符串-In the arm9 2440 test rtp protocol pc the receiving end, accept the development board to send a string
- 2022-03-06 09:49:19下载
- 积分:1
-
read data weighed
读取过磅系统数据-read data weighed
- 2022-12-03 20:00:03下载
- 积分:1
-
VC编写的card类ActiveX控件,简单易用使用方便。
VC编写的card类ActiveX控件,简单易用使用方便。-A game of Card ActiveX Used VC program
- 2023-02-11 01:55:04下载
- 积分:1
-
使用 3×3 矩阵来加密编码
已经很详细了
使用 3×3 矩阵来加密编码
已经很详细了-use of 3 3 matrix to encryption code has been a very detailed
- 2023-07-06 16:30:03下载
- 积分:1
-
半监督社区划分算法SpinGlass算法
Eaton 等人分别考虑个体标签和成对约束两种形式,提出了基于 Spin-Glass 模 型的半监督社区发现方法。 该算法通过修正 Spin-Glass 模型的哈密尔顿量使网络中的 每个节点处于基态。该模型指定具有相同自旋状态的节点应该被划分到同一个社区。 为了把两种形式的先验信息结合到哈密尔顿函数中,算法分别对应个体标签和成对约 束先验信息建立惩罚或奖励函数。在最小化哈密尔顿函数时,该算法采用模拟退火思想避免局部最优,从而得到良好的社区划分结构。 该算法在实验中呈现出较好的识别准确度和抗噪性。
- 2022-03-11 07:27:08下载
- 积分:1
-
动态图标叠加示例
windows的快捷方式就是在原有图标上叠加一个小箭头,也可以叠加一些数字表示文件的标号,这个源代码就是在图标上叠加其他小图标的示例代码,适用于Windows平台
- 2022-05-25 01:26:05下载
- 积分:1
-
xml格式解析的源代码
xml格式解析的源代码-xml format parsing source code
- 2022-06-14 21:41:02下载
- 积分:1
-
how to set up a sister city links are so few routes do not intersect also the la...
动态规划法---如何设置友好城市间的航线使的航线数又最大又不相交-dynamic programming-- how to set up a sister city links are so few routes do not intersect also the largest
- 2022-09-08 19:00:02下载
- 积分:1
-
图书管理系统的SQL数据库的触发器
包含读者借书的触发器,读者还书的触发器,以及图书进入库存的触发器。包含了相关的借书、还书、超期续费、图书入库等等的一些功能。然后程序中读者单次只能借1本书,最多借30天,超期还有罚金。详细可以下载浏览。
- 2023-04-22 20:50:03下载
- 积分:1