登录
首页 » Visual C++ » lock_hungry

lock_hungry

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

  • toolmenu
    用ObjectARX开发AutoCAD的一个实例,这是做出来在AutoCAD中显示工具栏的一个例子(A sample for develop AutoCAD using ObjectARX, to display tool menu in AutoCAD.)
    2005-07-16 12:09:12下载
    积分:1
  • dui-lib
    vc++duilib中对各种控件命名的规则(vc++duilib zhong dui gezhong kongjian de mingming guize)
    2011-12-19 13:21:38下载
    积分:1
  • dotaMapHook
    1.替换war3根目录下Games 联合开发网 - pudn.com
    2014-02-15 10:25:53下载
    积分:1
  • WDK开发了PCI驱动 WDM_PCI_Driver
    基于WDK开发了PCI驱动。根据读取PCI配置空间,可以得到PCI设备的所有资源。(The project is used for PCI driver.)
    2020-06-27 00:20:01下载
    积分:1
  • lesson-12
    孙鑫VC++教学课程lesson12:const char *与char * const的区别。C语言对文件读写的支持,FILE指针;文本文件和二进制文件的区别。用文本方式读写文件和以二进制方式读写文件的注意事项。C++对文件读写的支持,ofstream和ifstream的用法。Win32 SDK对文件读写的支持,CreateFile函数、WriteFile函数、ReadFile函数的使用;MFC对文件读写的支持,CFile类和CFileDialog的使用,文件过滤器的设置。win.ini文件和注册表的读写方式及相关知识点。 (Sun Xin VC++ tutorial lesson12: const char* char* const distinction. C language support for file read and write, the FILE pointer difference between text files and binary files. Way to read and write files with text and Note to the binary mode read and write files. The C++ support, ofstream and ifstream usage of file read and write. Win32 SDK file read and write support for the use of the CreateFile function, WriteFile function, ReadFile function the MFC file reading and writing support use CFile class and CFileDialog file filter settings. win.ini file and read and write registry and related knowledge points.)
    2013-04-02 10:13:49下载
    积分:1
  • EZADJUST
    美国天宝公司TGO软件的GPS网平差程序的核心源代码,GPS软件开发必备(Trimbles TGO software for GPS network adjustment program source code, GPS software development, an essential)
    2009-09-16 21:17:23下载
    积分:1
  • high-quality-programming-of-C
    这是一本关于C语言规范编程的好教程,通过阅读本书对我们以后的编程习惯会有很大的影响(This is a programming tutorial on the C language specification, through reading this book will have great impact on our programming habits)
    2012-10-29 10:39:51下载
    积分:1
  • BRAS
    BRAS的简述文档。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。(BRAS a brief description of the document. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .)
    2009-04-01 18:16:04下载
    积分:1
  • WaveFilePro
    WAVE文件解析:大小、采样率、采样位、通道个数、双声道分离与合并、简单混音。VC6.0调试通过!(WAVE file parsing: size, sample rate, sample position, the number of the channel, dual channel separation and merging, simple mixing. VC6.0 debugging through!)
    2014-05-08 17:07:59下载
    积分:1
  • ACR122U-Sample-Codes_CPP
    ACR122U Sample Codes_C 读卡机示范代码(ACR122U Sample Codes_C )
    2013-09-04 14:18:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载