-
由用户输入系统进程数(最多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
-
使用CWinApp写控制台程序的例子
使用CWinApp写控制台程序的例子-The Example of writing console application using CWinA
- 2022-12-31 08:10:03下载
- 积分:1
-
Socket通讯客户端封装,就是把SOKET的Delphi通讯的客户端封装成为的DLL文件的源代码,以后用户只要调用此DLL文件就可以了!...
Socket通讯客户端封装,就是把SOKET的Delphi通讯的客户端封装成为的DLL文件的源代码,以后用户只要调用此DLL文件就可以了!-Packaging the socket API to a DLL file, written by Delphi.
- 2023-02-03 16:35:04下载
- 积分:1
-
利用图像的rgb分量提取其中的亮度分量并显示其直方图。
利用图像的rgb分量提取其中的亮度分量并显示其直方图。-using the rgb images from the weight brightness components and to demonstrate its histogram.
- 2023-08-22 07:20:03下载
- 积分:1
-
使用J #和java进行";骰子";这个小程序实现了…
使用J#,JAVA来进行“掷骰子”这种小程序的实现,层层递进加深程序复杂度-using J# and Java to carry out "Dice" This small program to achieve the progressive deepening layers of complexity procedures
- 2022-07-15 19:01:54下载
- 积分:1
-
五子棋 C程序
GoMoKu
(Connect-5) is a chess game. The game board is a 10´10 grid area, as shown
below. The rules are:
·
The game is for two players, one with black stone and
the other with white stone. The .GIF files for background, black stone and
white stone can be downloaded with this assignment sheet.
·
The game alternates from one player to the other.
Each player makes his move by clicking the small square on his chess board. A
stone (black or white) will immediately appear on the display of both
sides.
· &
- 2023-04-17 13:05:04下载
- 积分:1
-
1).能够实现对班级学生基本信息的录入,包括学生的学号,姓名,性别,专业,民族以及出生年月等。 2).能够实现对学生基本信息的修改。 3).根据学号对学生信息进...
1).能够实现对班级学生基本信息的录入,包括学生的学号,姓名,性别,专业,民族以及出生年月等。 2).能够实现对学生基本信息的修改。 3).根据学号对学生信息进行查询。 4).能够删除某些学生的信息。-1)able to insert the basic information of students,including number,gender,major,nation and birthday.
2)able to modify basic information of students.
3)query student s information by his/her number.
4)delete information of certain students.
- 2023-01-22 18:05:03下载
- 积分:1
-
简易计算器,可以连续输入计算式,然后输出结果。先把中缀式转换成后缀式然后计算。...
简易计算器,可以连续输入计算式,然后输出结果。先把中缀式转换成后缀式然后计算。
- 2022-02-14 07:47:18下载
- 积分:1
-
design patterns VC example, can be used to study design patterns. I feel very us...
设计模式的VC例子,可以用于学习设计模式。我自己觉得很有用。这个是Build模式-design patterns VC example, can be used to study design patterns. I feel very useful. This is the Build Model
- 2022-07-08 07:45:55下载
- 积分:1
-
窗口处理程序的源码,里面包含八个工程,对于初学windows编程的同学来说是很有用的...
窗口处理程序的源码,里面包含八个工程,对于初学windows编程的同学来说是很有用的-Window handle of the source program, which contains eight projects for the beginner students windows programming is very useful
- 2022-11-08 08:40:03下载
- 积分:1