-
由用户输入系统进程数(最多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
-
简单的UDP打洞程序
简单的Windows UDP打洞程序,包含服务器端程序和客户端程序,在Visual C++ 2008上编译通过。
- 2022-07-26 08:49:07下载
- 积分:1
-
简单的画图工具,用VB能实现画直线矩形圆等
简单的画图工具,用VB能实现画直线矩形圆等-A simple drawing tools, use VB to achieve circular, such as drawing a straight line rectangular
- 2022-01-25 19:03:51下载
- 积分:1
-
改变屏幕到16位彩色的演示,美中不足的是一定要重新启动,设置才能体现, 如果有那位网友知道如何不用重新启动就能改变设置,请赐教,感激不尽!...
改变屏幕到16位彩色的演示,美中不足的是一定要重新启动,设置才能体现, 如果有那位网友知道如何不用重新启动就能改变设置,请赐教,感激不尽!-change to the 16-screen color display of the fly in the ointment is that we must restart, set up in order to realize that if man who knew how to restart can not change the settings, please enlighten, very grateful!
- 2022-03-23 14:33:15下载
- 积分:1
-
To commence, a question, what is the scope of a project? The project management...
To commence, a question, what is the scope of a project? The project management literature is relatively silent in dealing with scope as a major issue. To provide a basis for the discussion, scope as defined is:
"1. End aimed at, purpose, intention
2. Outlook, purview, sweep or reach or sphere of observation or action, tether, extent to which permissible or passible range, opportunity, outlet,"1
Procedures manuals and contract documentation attempts to explicitly define scope.
- 2022-02-03 23:22:47下载
- 积分:1
-
一个使用线型扩散插值法的小程序源码
实现了MFC和OpenGL应用的结合
插值结果可以以图像灰度的形式显示...
一个使用线型扩散插值法的小程序源码
实现了MFC和OpenGL应用的结合
插值结果可以以图像灰度的形式显示-A proliferation of the use of linear interpolation of the applet source code of MFC and OpenGL applications to achieve the combination of interpolation results can be displayed in the form to the image grayscale
- 2023-04-05 10:35:03下载
- 积分:1
-
A very good c++ Learning video, was very detailed and thorough! Suitable for c++...
一部很好的c++学习视频,讲得非常详细,透彻!适合c++初学者使用,学习!-A very good c++ Learning video, was very detailed and thorough! Suitable for c++ Beginners use to learn!
- 2023-08-24 20:30:10下载
- 积分:1
-
java开发的贪吃蛇游戏
用纯java开发的贪吃蛇游戏,用eclipse开发出来的,运行项目JFrame窗口打开,在window系统中运行,通过一个一个的节点组成一条蛇,随机在除蛇身上生成食物,蛇可以通过键盘控制移动吃食物,包含完整代码
- 2022-03-11 23:57:17下载
- 积分:1
-
Practical C++ programming adjustable sine curve, simple and practical.
实用C++编程实现可调正弦曲线的绘制,简单实用。-Practical C++ programming adjustable sine curve, simple and practical.
- 2022-08-16 04:06:26下载
- 积分:1
-
完成万年历的各种功能,可以显示年、月、日、时、分、秒 、星期,还是显示实时温度!具备基本的各项功能!...
完成万年历的各种功能,可以显示年、月、日、时、分、秒 、星期,还是显示实时温度!具备基本的各项功能!-Completion of the various calendar functions, you can display year, month, day, hour, minute, seconds, weeks, or show real-time temperature! Equipped with the basic functions!
- 2022-01-26 00:22:08下载
- 积分:1