登录
首页 » Visual C++ » lock_hungry

lock_hungry

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

  • lastools
    las文件读取,转换程序。包含las转txt,las转shp等。从国外某大学上下载的开源代码。(las file read, the conversion process. Includes las transferred txt, las switch shp so. A university from abroad to download open-source code.)
    2020-07-03 06:00:01下载
    积分:1
  • 4637354
    Windows音频音量控制实例VB代码,有需要的下。(Windows VB code, audio volume control instance in need.)
    2013-08-19 08:37:33下载
    积分:1
  • RdWrtIni
    说明:  ini文件读取和写入,基于MFC实现的。因为Wince下没有实现ini文件的读写。(ini file to read and write, based on the realization of the MFC. Wince achieve because there is no read and write ini files.)
    2009-07-30 11:42:49下载
    积分:1
  • GetWindowLong
    一个VB6消息相关源码下载,截取消息,并将消息交给wndproc过程处理.取消消息截取,结束子分类过程.Module1.bas中,定义全局变量,存放控件标志性数据,wndproc函数就是用来接收子类时截取的消息的,将截取下来的消息存放在msg参数中.检测到消息,就可以加入处理代码。需要注意,如果这儿不加入任何代码,则相当于吃掉了这条消息(A message related VB6 source code download, intercept messages and the processing of the message to wndproc Cancel message interception, ending the process of sub-classification. Module1.bas, the definition of global variables, data storage control signs, wndproc function is used to receive child when class intercepted message, the message will be stored in the interception down the msg parameter. detected a message, you can add processing code. Note that if you do not add any code here, is the equivalent of eating this message)
    2014-05-06 15:46:29下载
    积分:1
  • source-code
    Opencv教程的实例源代码 书中的C/C++语言实例。各实例子目录中的*.dsw和*.dsp文件分别为Windows下Visual C++ 6.0的Workspace文件和Project文件;Makefile是Linux下GNU Make的输入文件。在Windows环境下,双击*.dsw文件将会启动Visual C++ 6.0并装载该实例;在Linux环境下,输入make命令就可以编译该实例。(Opencv tutorial source code examples in the book of C/C++ language examples. .. Each instance subdirectory* dsw and* dsp files are under Visual C++ 6.0 for Windows File and Project Workspace file Makefile Linux is GNU Make the input file. In the Windows environment, double* dsw file will start the Visual C++ 6.0 and load the instance in the Linux environment, enter the make command to compile the examples.)
    2013-12-05 22:28:11下载
    积分:1
  • Resource
    一个包含客户端、服务器的Corba实例,基于ACE和TAO(A CORBA Example Consisted of client and server)
    2010-12-10 15:07:14下载
    积分:1
  • Fire
    利用OpenGL写的模拟火焰代码,模拟水纹代码,基于粒子算法的(The use of OpenGL code written in flame simulation, simulation水纹code algorithm based on particle)
    2009-07-02 18:03:46下载
    积分:1
  • CnComm
    串口调试精灵源代码,试过了,好用,自己可以在上面少量修改增加自己需要的功能。(Serial debug source code wizard, tried, and easy to use, they can increase their own minor modifications in the above functionality required.)
    2011-11-04 18:31:07下载
    积分:1
  • code-1
    经典编程书目,有很多经典问题和算法思想,值得IT人士学习。(a book worth people who study IT reading)
    2012-02-24 17:35:00下载
    积分:1
  • disk
    磁盘是高速、大容量、旋转型、可直接存取的存储设备。它作为计算机系统的辅助存储器,担负着繁重的输入输出工作,在现代计算机系统中往往同时会有若干个要求访问磁盘的输入输出要求。系统可采用一种策略,尽可能按最佳次序执行访问磁盘的请求。由于磁盘访问时间主要受寻道时间T的影响,为此需要采用合适的寻道算法,以降低寻道时间。本实验要求学生模拟设计一个磁盘调度程序,观察调度程序的动态运行过程。通过实验让学生理解和掌握磁盘调度的职能。(Disk is the high-speed, large capacity, rotating, direct access storage device. As a secondary computer system memory, to carry out heavy work input and output in modern computer systems often also have a number of requests to access the disk input and output requirements. System can use a strategy, as far as possible the best order of implementation of the disk access requests. As the disk access time is mainly affected by the impact of seek time T, which requires use of appropriate seeking algorithms to reduce the seek time. This experiment requires students to design a disk scheduling simulation program, observe the dynamic process scheduler. Experiments for students to understand and grasp the disk scheduling functions.)
    2010-05-29 16:06:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载