登录
首页 » Visual C++ » lock_hungry

lock_hungry

于 2021-01-17 发布 文件大小:1KB
0 227
下载积分: 1 下载次数: 22

代码说明:

   给出进程需求矩阵C、资源向量R以及一个进程的申请序列。使用进程启动拒绝和资源分配拒绝(银行家算法)模拟该进程组的执行情况。要求: 初始状态没有进程启动 计算每次进程申请是否分配?如:计算出预分配后的状态情况(安全状态、不安全状态),如果是安全状态,输出安全序列。 每次进程申请被允许后,输出资源分配矩阵A和可用资源向量V。 每次申请情况应可单步查看,如:输入一个空格,继续下个申请 (The  gives processes demand matrix C resource vector R as well as the application of a process sequence. Using the process starts refused to reject and resource allocation (the bankers algorithm) analog implementation of the process group. Requirements: initial state process starts calculated each time the process is whether the application is assigned? : Calculate a state after the pre-allocated (safe state, unsafe state), if it is a safe state, the output safety sequence. Each process the application is allowed, the the output resource allocation matrix A and the resources available vector V. Each application should be able to single-step view, such as: type a space, continue to the next application)

文件列表:

lock_hungry.cpp,3461,2013-01-08

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • thinking_in_cpp
    说明:  《thinking_in_cpp》,计算机大师Bruce Eckel的著作,学习C++的顶级材料(&quot Thinking_in_cpp&quot , Master Bruce Eckel computer books, learning C++ of the top material)
    2009-08-12 09:48:42下载
    积分:1
  • chapter-8
    Direct3D 关于雪花粒子,烟花粒子,雨点粒子等的程序。用VC++6.0编译。(Direct3D on snow particles, fireworks particles, particles, etc. raindrops program.)
    2013-05-28 21:56:26下载
    积分:1
  • owncombox
    一个定制combox的SDK代码,you should first learn to use VC Tools (nmake) to Build SDK Code(a Custom Combox SDK code, you should first learn to use VC Tools (nmake) to Build Code SDK)
    2005-04-14 23:20:53下载
    积分:1
  • AdoExample
    这是我自己写的一个数据库课程设计主要是如何利用ADO跟ACCESS数据库写的,主要使用MFC进行编写,大开工程编译一下就可以运行了(just a ado program)
    2011-05-21 19:18:32下载
    积分:1
  • chengyu1.rar
    类的继承与派生的几道练习题,内有题的大意(Class inheritance and derived)
    2012-07-02 17:03:37下载
    积分:1
  • HWDetect
    说明:  一个VC编写的USB口的安全保护程序,可以禁用及启用USB口。可以自动识别。(VC prepared a USB port security protection program, you can disable and enable USB port. Can automatically identify.)
    2008-10-14 11:57:27下载
    积分:1
  • 3.loadinpsw-a-call-dialog
    在MFC平台环境下,用C++编写的关于编辑框和调用窗口的程序。(The MFC platform environment, the edit box and call window with C++ written procedures.)
    2012-11-30 21:37:09下载
    积分:1
  • attiny13_AD
    AVR单片机attiny13的AD采样程序包,内含在Avr Studio 4下开发的完成源代码和在protues 7.10下开发的完整的仿真图,功能说明在程序注释中。(AVR microcontroller attiny13 AD sampling package, containing the Avr Studio 4 developed under the complete source code and developed under the protues 7.10 complete simulation diagram, function described in the program note.)
    2020-10-09 16:47:36下载
    积分:1
  • SeriesPort
    说明:  通过CreatFile SetupComm GetCommStat等API函数来创建一个串口传输程序(CreatFile SetupComm GetCommStat such as through the API function to create a serial transfer procedure)
    2008-10-08 22:44:29下载
    积分:1
  • 1
    说明:  VC++编写上位机串口通信界面,原创VC++编写串口通信上位机界面 本人做接口实验时上位机部分 (VC++ write PC serial communication interface, the preparation of original VC++ serial communication interface, PC interface, I do some PC experiments)
    2010-08-30 11:15:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载