-
银行家算法
设Request是进程Pi 请求向量,如果Requesti [j]=k,表示进程Pi 需要k个RJ 类型的资源。当Pi 资源请求后,系统按下述步骤进行检查:
(1) 如果Requesti [j]≤Need[I,j]便转向步骤2;否则认为出错,因为它所需要的资源数已超过它所宣布的最大值。
(2) 如果便转向步骤(3);否则,表示尚无足够资源,Pi 须等待。Requesti [j]≤Available[j]
(3) 系统试探着把资源分配给进程Pi ,并修改下面数据结构中的数值:
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-30 21:29:17下载
- 积分:1
-
求图中从一个顶点到另一个顶点的一条路径。
//为简化算法,没有提供顶点到其编号的转换函数,函数Path_vtou(ALGraph G,VexIndex v,...
求图中从一个顶点到另一个顶点的一条路径。
//为简化算法,没有提供顶点到其编号的转换函数,函数Path_vtou(ALGraph G,VexIndex v,VexIndex u)
//中两顶点参数用的是顶点的编号;函数Printpath(ListType Path)输出的是路径上的顶点编号序列-seeking a map from the vertex to another vertex of a path.// To simplify the algorithm, not to its peak numbered conversion, function Path_vtou (ALGraph G, VexIndex v, u VexIndex)// 2 vertex parameters of the number of vertices; Function Printpath (ListType Path) output is on the path to the peak numbers Sequence
- 2022-08-31 23:55:03下载
- 积分:1
-
模拟一个网络中信号德有衰减传输
当衰减到一定程度时对信号进行放大...
模拟一个网络中信号德有衰减传输
当衰减到一定程度时对信号进行放大
-simulated a network signal transmission attenuation Germany when it decays to a certain extent when the signal amplification
- 2022-12-09 11:15:03下载
- 积分:1
-
利用Winsock做的网络程序 VC源码
利用Winsock做的网络程序 VC源码-网络编程-Does the use of Winsock network program source VC- Network Programming
- 2023-03-16 02:45:04下载
- 积分:1
-
VC development of the SQL database based on the expert system, is useful.
用VC开发的基于SQL数据库的专家系统,很好用.-VC development of the SQL database based on the expert system, is useful.
- 2022-06-17 09:02:22下载
- 积分:1
-
这是MTeX套装中的一个重要工具,用于判断一个文件是否只包含Ascii字符。由于中文tex文件的编译需要进行特殊处理(但这种处理会对英文tex文件造成副作用),...
这是MTeX套装中的一个重要工具,用于判断一个文件是否只包含Ascii字符。由于中文tex文件的编译需要进行特殊处理(但这种处理会对英文tex文件造成副作用),通过这个小工具,可以自动判断是否应对tex文件做相应的中文预处理。
-This is a suite MTeX an important tool for judging whether a file contains only Ascii characters. As the Chinese compile tex document the need for special treatment (but this deal will result in side effects of the English tex file), the adoption of this gadget, you can automatically determine whether to deal with tex document corresponding Chinese pretreatment.
- 2022-02-20 16:58:10下载
- 积分:1
-
from msdn!
from msdn!-from flowing!
- 2022-05-14 04:19:25下载
- 积分:1
-
自己做的一个学生成绩管理系统,用于对学生成绩进行查看,添加,删除等等。...
自己做的一个学生成绩管理系统,用于对学生成绩进行查看,添加,删除等等。-Myself a student achievement management system, for pupils to view, add, delete and so on.
- 2022-05-26 11:45:02下载
- 积分:1
-
Ansys图形用户界面的二次开发,通过这一经验可扩充Ansys的现有功能
Ansys图形用户界面的二次开发,通过这一经验可扩充Ansys的现有功能-Ansys secondary graphical user interface development, through this experience to expand the existing functional Ansys
- 2022-11-26 17:40:03下载
- 积分:1
-
数字转换为中文大写代码段
数字转换为中文大写代码段-converted to digital code of the Chinese capital
- 2023-07-04 21:50:03下载
- 积分:1