文件名称:banker
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 239kb
- 下载次数:
- 0次
- 提 供 者:
- ela***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本设计的目的是通过编写和调试一个系统动态分配资源的简单模拟程序,观察死锁产生的条件,并采用适当的算法,有效地防止和避免死锁的发生。具体要求如下:
⑴模拟一个银行家算法;
⑵初始化时让系统拥有一定的资源;
⑶用键盘输入的方式申请资源;
⑷如果预分配后,系统处于安全状态,则修改系统的资源分配情况;
⑸如果预分配后,系统处于不安全状态,则提示不能满足请求。
-The purpose of this design through the writing and debugging a system of resource allocation simple dynamic simulation program to observe the resulting deadlock conditions, and the use of appropriate algorithms, effectively prevent and avoid the occurrence of deadlock. Specific requirements are as follows: ⑴ simulation algorithm of a banker ⑵ initialization when the system has a certain amount of resources ⑶ way to use keyboard input for resources ⑷ If pre-allocation, the system in safe state, then modify the allocation of system resources ⑸ If pre-allocation, the system is in unsafe state, it can not meet the request for tips.
⑴模拟一个银行家算法;
⑵初始化时让系统拥有一定的资源;
⑶用键盘输入的方式申请资源;
⑷如果预分配后,系统处于安全状态,则修改系统的资源分配情况;
⑸如果预分配后,系统处于不安全状态,则提示不能满足请求。
-The purpose of this design through the writing and debugging a system of resource allocation simple dynamic simulation program to observe the resulting deadlock conditions, and the use of appropriate algorithms, effectively prevent and avoid the occurrence of deadlock. Specific requirements are as follows: ⑴ simulation algorithm of a banker ⑵ initialization when the system has a certain amount of resources ⑶ way to use keyboard input for resources ⑷ If pre-allocation, the system in safe state, then modify the allocation of system resources ⑸ If pre-allocation, the system is in unsafe state, it can not meet the request for tips.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
银行家算法C++描述
.................\银行家算法C++描述
.................\.................\1.cpp
.................\.................\1.exe
.................\.................\1.txt
.................\.................\2.txt
.................\.................\Debug
.................\.................\.....\safs.exe
.................\.................\.....\safs.ilk
.................\.................\.....\safs.obj
.................\.................\.....\safs.pch
.................\.................\.....\safs.pdb
.................\.................\.....\vc60.idb
.................\.................\.....\vc60.pdb
.................\.................\safe_status_check.c
.................\.................\safe_status_check.exe
.................\.................\safs.c
.................\.................\safs.dsp
.................\.................\safs.dsw
.................\.................\safs.ncb
.................\.................\safs.opt
.................\.................\safs.plg
.................\.................\银行家算法C++描述.doc
.................\银行家算法C描述
.................\...............\pengli.c
.................\银行家算法C++描述
.................\.................\1.cpp
.................\.................\1.exe
.................\.................\1.txt
.................\.................\2.txt
.................\.................\Debug
.................\.................\.....\safs.exe
.................\.................\.....\safs.ilk
.................\.................\.....\safs.obj
.................\.................\.....\safs.pch
.................\.................\.....\safs.pdb
.................\.................\.....\vc60.idb
.................\.................\.....\vc60.pdb
.................\.................\safe_status_check.c
.................\.................\safe_status_check.exe
.................\.................\safs.c
.................\.................\safs.dsp
.................\.................\safs.dsw
.................\.................\safs.ncb
.................\.................\safs.opt
.................\.................\safs.plg
.................\.................\银行家算法C++描述.doc
.................\银行家算法C描述
.................\...............\pengli.c