登录
首页 » Visual C++ » lock_hungry

lock_hungry

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

  • ADOctrlAccess
    说明:  ADO控制Access数据库。源来《Visual c++案例开发集锦》(ADO Control Access database. Source to &quot Visual c++ Collection of case development,&quot )
    2010-04-05 01:42:25下载
    积分:1
  • Chat
    说明:  这个源代码是在网路上Chatting(用文字)软件的。(this source is the chatting programm using characters in network. )
    2010-03-22 09:32:18下载
    积分:1
  • OsenXPCntrl
    VB仿XP风格的窗体控件含演示代码,有需要的就下载吧。(XP style imitation VB form controls with demo code, there is a need to download it.)
    2013-08-03 23:45:19下载
    积分:1
  • B18
    E:Visual_C__MFC扩展编程实例 例18 动态地抓取应用程序的屏幕图像并将其打印。 上一个实例打印的是文档的报表,而不是当前出现在屏幕上的内容。在本例中,将实现 屏幕抓取并打印其内容。M F C 为打印视提供了有限的支持, 但只要用M F C 在 C Vi e w : : O n D r a w ( )中所提供的设备环境,就可以绘制自己的视。在打印视的时候, M F C只需调 用具备打印机设备环境的O n D r a w ( )函数即可。但是,如果不绘制自己的视,例如,用一个或 者一个以上的控件窗口填充自己的视就不会打印任何东西。每个控件将使用自己的设备环境 将自己打印到屏幕,因此打印视的唯一途径就是抓取屏幕(拷贝其内容到一个位图对象)并将其 打印到打印机。由于该功能整个与位图相关,因此将该功能封装到了位图类中。(E : Visual_C__MFC expand programming examples cases 18 crawls dynamic application's screen images and their Print. Print example, a document is a statement, rather than the current appeared on the screen content. In this case, to achieve the screen crawls and print its contents. M F C Print, as provided limited support, but as long as M F C in C Vi e w : : O r a n D. w (), which provided the equipment environment, we can draw our own consideration. In Print, as when M F C only with the printer device called the environment O D r a n w () function can be. However, if we do not draw their attention, for example, or one with a control over their windows filled as it will not print anything. Controls will use their own equipment to their environment to Print Screen, Therefore, as Print i)
    2007-05-19 19:40:37下载
    积分:1
  • MFC-Skill
    MFC使用的一些小技巧,较为实用,可解决一些小问题(some MFC skill)
    2016-11-11 00:22:23下载
    积分:1
  • 51
    说明:  51单片机串口通讯软件与上位机通讯 含有多个程序(this is a programe to serils community to 51 and pc.)
    2012-04-26 22:42:19下载
    积分:1
  • libmp3decode
    说明:  mp3解码,从外国的网站上下载的,分享给大家(mp3 decoder, from the foreign site to download and share to everyone)
    2008-11-01 22:01:32下载
    积分:1
  • gxFskSrv_src
    东进语音板卡使用范例,主要是与应用平台间的数据通信,还有与语音板卡的数据交换。同时包括语音通道的状态管理。(East to use an example of voice board, mainly between the platform and application of data communications, as well as data and voice exchange board. At the same time, including the status of the management of voice channels.)
    2009-06-16 17:46:03下载
    积分:1
  • FileSplit
    简单的VB文件分割、合并工具,有需要的就下载吧。(Simple VB file split, merge tool, there is a need to download it.)
    2013-08-21 10:26:16下载
    积分:1
  • Mainfram44XS
    • Mainframe technology experience (Cobol, DB2, JCL, CICS, ZOS). Person should be well versed with App Migration/modernization, Data Migration and Conversion experience. Involved with defect analysis, fixing documentations and analyzing in past projects. UNIX base with Micro Soft COBOL would be nice to have. • Mainframe technology experience (Cobol, DB2, JCL, CICS, ZOS). Person should be well versed with App Migration/modernization, Data Migration and Conversion experience. Involved with defect analysis, fixing documentations and analyzing in past projects. UNIX base with Micro Soft COBOL would be nice to have.
    2013-11-24 19:02:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载