-
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{...
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{A,B,C}的资源数量分别为10,5,7。进程可动态地申请资源和释放资源,系统按各进程的申请动态地分配资源。要求程序具有显示和打印各进程的某一时刻的资源分配表和安全序列;显示和打印各进程依次要求申请的资源号以及为某进程分配资源后的有关资源数据。 3.程序设计和说明: 函数说明:anquan( )判断给某个进程请求后系统是否安全,anquan1()判断当前系统是否安全。GetAll()取得所有进程的的各个资源数据。详细说明请参见附录中的程序的文档说明。-1. The experiment : Simulation Algorithm bankers, bankers algorithm with the allocation of resources. 2. Experiment : Design 5 (process P0, P1, P2, P3, P4) (resource sharing three categories A, B, C), (A, B, C) amount of resources to 10,5,7. Dynamic process could apply to the resources and the release of resources, according to the system processes the application to dynamically allocate resources. Procedures required to display and print the process of a moment of the distribution of resources and safety sequence; Display and print the process followed for seeking resources, as well as a process of distribution of resources in the resource data. 3. Program design and description : F
- 2022-04-07 18:24:35下载
- 积分:1
-
哲学家就餐问题
哲学家就餐问题归纳为五个哲学家坐在一张桌子做两件事之一: 吃或思考。吃时,他们不思维,并同时观想,他们不吃。五个哲学家的圆形餐桌上坐着一大碗的面条在中心。一把叉子放在每一对相邻的哲学家,和,因此每个哲学家有一把叉子,在他的左边和一把叉子,向他的右边。由于意大利面条很难服务,用一个叉子吃,假定一个哲学家必须用两把叉子吃饭。每个哲学家可以只使用叉子在他立即左和直接权限。
- 2023-08-29 01:30:03下载
- 积分:1
-
multi
多层次目录管理实验详细报告,包括实验中使用的源代码,即使眼睛的细节
- 2023-08-20 02:50:03下载
- 积分:1
-
内存使用查看器
这是查看计算机中所有内存的一种非常简单的方法。大多数代码只是自我解释
- 2022-02-03 13:28:10下载
- 积分:1
-
TViX firmware creation tool.
TViX firmware creation tool.
- 2022-03-01 09:50:51下载
- 积分:1
-
IwTCP/IP network protocol stack in the operating system porting code ucos
IwTCP/IP网络协议栈在ucos操作系统上的移植代码-IwTCP/IP network protocol stack in the operating system porting code ucos
- 2022-02-02 22:21:48下载
- 积分:1
-
仿搜狐NBA网站源码,仿搜狐NBA网站源码全站生成HTML静态页面
仿搜狐NBA网站源码,仿搜狐NBA网站源码全站生成HTML静态页面
-Sohu NBA source fake website, fake website Sohu NBA source station to generate the entire static HTML pages
- 2023-01-16 20:30:04下载
- 积分:1
-
微软早期的一个操作系统[ 1 ]。0
Microsoft早期操作系统1[1].0-3.0全系列收藏版-Microsoft early one operating system [1] .0-3.0 full range of collectors edition
- 2022-02-02 02:43:51下载
- 积分:1
-
Sourcecode of the Linux
Sourcecode of the Linux-011 with detailed chinese annotation,it s verygood and worth reading.
- 2023-01-08 03:05:04下载
- 积分:1
-
ADMXPROX.dll文件,ADMXPROX.dll文件
ADMXPROX.dll文件,ADMXPROX.dll文件-ADMXPROX.dll paper documents ADMXPROX.dll
- 2022-01-25 22:11:20下载
- 积分:1