-
犯错
某一层楼20层,有五部互联的电梯。基于线程思想所编写一个电梯调度程序。
每个电梯里面应该有一些按键:数字键、关门键、开门键、等。
每层楼的每部电梯门口,应该有上行和下行按钮。
五部电梯门口的按钮是互联结的,即当一个电梯按钮按下去时,其他电梯的相应按钮也就同时点亮,表示也按下去了。
调度算法是根据这五部电梯的状态,寻找离当前楼层最近的且和请求同方向的电梯给予响应。
所有电梯初始状态都在第一层。每个电梯如果在它的上层或者下层没有相应请求情况下,则应该在原地保持不动。
-err
- 2022-02-15 23:33:33下载
- 积分:1
-
程序崩溃后,将内存中的崩溃信息dump到本地,供调试用
当我们系统要求的程序,有时会在客户端计算机的应用程序崩溃,因为没有调试信息,我们不能调试应用程序崩溃,为什么。但与小型转储,我们可以调试崩溃是本地机器调试
- 2022-09-05 05:45:02下载
- 积分:1
-
由用户输入系统进程数(最多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
-
ArcGIS Engine全套功能演示软件
应用背景ArcGIS Engine 二次开发学习好资料,基于Windows Form开发, 里面涉及AE地理开发相关技术,如果图层加载、空间运算等关键技术ArcGIS Engine学习开发的入门资料,包括图层加载,地图缩放、漫游,文档加载、要素选择,空间运算,专题图制作等,结合官方文档,可以尽快掌握GIS相关开发
- 2023-04-08 13:20:06下载
- 积分:1
-
GPS使用ANFIS网络集成
- 2022-04-18 21:41:39下载
- 积分:1
-
vc下利用ODBC API对数据库的操作,包括增、删、改。可以移植、通用...
vc下利用ODBC API对数据库的操作,包括增、删、改。可以移植、通用-vc using ODBC API to the database operations, which include additional cut, change. Transplant GM
- 2022-11-16 03:00:03下载
- 积分:1
-
介绍了工业控制Window组态软件的通信
介绍了工业控制Window组态软件的通信-introduced the Industrial Control Software Configuration Window communications
- 2022-02-04 17:58:13下载
- 积分:1
-
多
多元多峰函数的优化实例
第10行各变量的上下限改为[-10 10],原来为[-3 3];
第25行改为:[Y, I]=min(ObjV) 原来为[Y, I]=min(ObjVSel) 以此将染色体的个体值与shubert()函数值对应起来,原表达式不具有shubert()函数自变量和应变量的对应关系
-Multi-multi-peak function optimization examples of the first 10 lines the upper and lower limits of each variable changed to [-10 10], originally for the [-3 3] No. 25 line changed to: [Y, I] = min (ObjV) the original of [ Y, I] = min (ObjVSel) this will be the individual value of chromosome shubert () function values corresponding to the original expression does not have shubert () function from the variables and should correspond to the relationship between variables
- 2022-12-27 05:15:03下载
- 积分:1
-
Dephi报表中画线控件
Dephi报表中画线控件-Delphi statements drew lines Controls
- 2023-01-28 11:10:03下载
- 积分:1
-
Explorer 快速开发windows文件管理器
Explorer 快速开发windows文件管理器
- 2022-02-24 16:53:21下载
- 积分:1