-
银行家算法
设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
-
Using ASP.NET+ C# to do a simple verification code function is used to study the...
用ASP.NET + C#做的一个简单的验证码功能,主要是用来学习验证码的实现。-Using ASP.NET+ C# to do a simple verification code function is used to study the realization of the code.
- 2022-04-19 07:37:51下载
- 积分:1
-
host based intrusion detection
host based intrusion detection
- 2023-05-30 06:45:03下载
- 积分:1
-
这个用了好长时间编写的希望对大家用用。如果有不理想的地方请大家与我联系。我会不段完善的。/...
这个用了好长时间编写的希望对大家用用。如果有不理想的地方请大家与我联系。我会不段完善的。/-It takes me a long time to finish it.I hope that it is useful to you.If there is anything unperfect,please tell me. I ll consummate it continuously.
- 2022-01-25 14:18:18下载
- 积分:1
-
窗口图形编程的基本知识和常用方法
介绍windows图形编程的基础知识和一些常用方法-Windows graphics programming introduce basic knowledge and some common methods
- 2022-04-07 12:43:01下载
- 积分:1
-
一个瓦楞辊划分边界单元及图形显示的应用程序。这个应用程序允许用户更改瓦楞辊的参数,划分边界单元的控制参数,显示单元划分的结果等等。...
一个瓦楞辊划分边界单元及图形显示的应用程序。这个应用程序允许用户更改瓦楞辊的参数,划分边界单元的控制参数,显示单元划分的结果等等。-Corrugated division of a boundary element and the graphical display applications. This application allows users to change the parameters of Corrugated, demarcation of the border unit of the control parameters, the results show that cell division and so on.
- 2022-03-22 08:12:35下载
- 积分:1
-
winamp播放器的Visual C++源代码
winamp player visual c++ souce code-unusual player visual c souce code
- 2022-02-07 14:27:35下载
- 积分:1
-
人工智能遗传算法求解寻路问题
本代码是用遗传算法求解一个迷宫的寻路问题,算法精炼,寻路效率非常高。用Windows GDI设计了迷宫,然后用遗传算法进行图形化寻路。
- 2023-07-07 07:25:07下载
- 积分:1
-
一个用C语言实现的学生管理系统,比较简单明了,适合初学者的学习。...
一个用C语言实现的学生管理系统,比较简单明了,适合初学者的学习。-1 with the C language implementation of the student management system, relatively simple and clear, suitable for beginners to learn.
- 2022-10-29 09:10:03下载
- 积分:1
-
实现正则表达式匹配。匹配速度很快,可以很方便的嵌入到自己的程序...
实现正则表达式匹配。匹配速度很快,可以很方便的嵌入到自己的程序-The realization of regular expression matching. Fast.
- 2022-05-28 01:11:19下载
- 积分:1