登录
首页 » Visual C++ » lock_hungry

lock_hungry

于 2021-01-17 发布 文件大小:1KB
0 208
下载积分: 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 个回复

  • KeyMouse
    通用键盘鼠标模拟(包括USB和PS2) 通过直接调用Kbdclass的回调函数KeyboardClassServiceCallback直接给上层发送键盘驱动。这个方法网上已经公开,参考 Hook KeyboardClassServiceCallback实现键盘 Logger,其他的还有很多,可以到网上去查。 简单说一下没有公开的部分,就是按下和松开的模拟,已经扩展键的模拟。 模拟主要是构造KEYBOARD_INPUT_DATA结构,按下和松开的Flags分别对应KEY_MAKE、KEY_BREAK,然后调用KeyboardClassServiceCallback。(Universal keyboard and mouse simulation (including USB and PS2))
    2010-07-23 11:19:14下载
    积分:1
  • H264-analysis-tool
    H264码流分析工具 包含h264visa破解版和Elecard StreamEye Tools 以及注册码(H264 stream analysis tools include h264visa cracked version and Elecard StreamEye Tools and License)
    2014-07-29 16:21:54下载
    积分:1
  • 73522635746
    VB控件版单IP端口扫描器,有需要的就下载吧。(VB version control single IP port scanner, has the need to download it.)
    2013-08-03 23:41:28下载
    积分:1
  • VC++ 20个窗体实例源码
    VC++界面编程20例,都是界面编程常用的例子,很适合初学者参考。(Vc + + interface programming)
    2017-07-01 17:41:05下载
    积分:1
  • Visual-CPP-
    Visual C++ 6.0开发指南,高守传版,虽然只有前6章,但对于入门来说还是很不错的。(Visual C++ 6.0 Developer' s Guide, Gao Chuan version, although only the first six chapters, but entry is still very good.)
    2011-07-02 12:21:51下载
    积分:1
  • chap1
    Visual Basic 学习的例子 Visual Basic 学习的例子(Examples of learning Visual Basic)
    2014-01-04 16:21:20下载
    积分:1
  • vbsystray
    自制托盘控件,用来使应用程序隐藏到系统托盘的控件(Zìzhì tuōpán kòngjiàn, yòng lái shǐ yìngyòng chéngxù yǐncáng dào xìtǒng tuōpán de kòngjiànHomemade tray control, used to make an application to the system tray hide the controls)
    2013-11-05 11:49:39下载
    积分:1
  • VCexample
    一种应用VC爱好者对树形控件的理解的应用(An application for tree lovers VC understanding of application controls)
    2008-07-29 20:40:21下载
    积分:1
  • CC2530-in-Chinese
    德州仪器公司的CC2530芯片手册,用于ZigBee技术的IEEE 802.15.4协议的2.4GHz通信应用(CC2530-in Chinese)
    2013-10-26 18:41:11下载
    积分:1
  • eddyingcharacter
    如何旋转显示字符串?本例子将详细向你演示。(How to rotate display string? This example will demonstrate to you in detail.)
    2009-05-24 16:34:17下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载