文件名称:Banker_algorithm
-
所属分类:
- 标签属性:
- 上传时间:2015-05-03
-
文件大小:3.16kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
主要内容是模拟实现资源分配。同时要求编写和调试一个系统动态分配资源的简单模拟程序,观察死锁产生
的条件,并使用适当的算法,有效的防止和避免死锁的发生。
具体用银行家算法实现资源分配。要求如下:
(1) 设计一个M个并发进程共享N类不同资源的系统,进程可动态地申请资源和释放资源,系统按各进程的申
请动态地分配资源(可考虑多个进程多个类资源的情况)。
(2) 设计用银行家算法和随机分配算法,实现资源分配的两个资源分配程序,应具有显示或打印各进程依次
要求申请的资源数以及依次分配资源的情况。
(3) 确定一组各进程依次申请资源数的序列,在相同的情况下分别运行上述两种资源分配程序,观察运行结
果。-The main elements of a simulation resource allocation. Also requires compiling and debugging a
system dynamic allocation of resources simple simulation program to observe the conditions
Deadlock, and the use of appropriate algorithms, effectively prevent and avoid the occurrence
of deadlock.Specific resource allocation algorithm with bankers.
的条件,并使用适当的算法,有效的防止和避免死锁的发生。
具体用银行家算法实现资源分配。要求如下:
(1) 设计一个M个并发进程共享N类不同资源的系统,进程可动态地申请资源和释放资源,系统按各进程的申
请动态地分配资源(可考虑多个进程多个类资源的情况)。
(2) 设计用银行家算法和随机分配算法,实现资源分配的两个资源分配程序,应具有显示或打印各进程依次
要求申请的资源数以及依次分配资源的情况。
(3) 确定一组各进程依次申请资源数的序列,在相同的情况下分别运行上述两种资源分配程序,观察运行结
果。-The main elements of a simulation resource allocation. Also requires compiling and debugging a
system dynamic allocation of resources simple simulation program to observe the conditions
Deadlock, and the use of appropriate algorithms, effectively prevent and avoid the occurrence
of deadlock.Specific resource allocation algorithm with bankers.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Banker_algorithm.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.