-
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{...
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{A,B,C}的资源数量分别为10,5,7。进程可动态地申请资源和释放资源,系统按各进程的申请动态地分配资源。要求程序具有显示和打印各进程的某一时刻的资源分配表和安全序列;显示和打印各进程依次要求申请的资源号以及为某进程分配资源后的有关资源数据。 3.程序设计和说明: 函数说明:anquan( )判断给某个进程请求后系统是否安全,anquan1()判断当前系统是否安全。GetAll()取得所有进程的的各个资源数据。详细说明请参见附录中的程序的文档说明。-1. The experiment : Simulation Algorithm bankers, bankers algorithm with the allocation of resources. 2. Experiment : Design 5 (process P0, P1, P2, P3, P4) (resource sharing three categories A, B, C), (A, B, C) amount of resources to 10,5,7. Dynamic process could apply to the resources and the release of resources, according to the system processes the application to dynamically allocate resources. Procedures required to display and print the process of a moment of the distribution of resources and safety sequence; Display and print the process followed for seeking resources, as well as a process of distribution of resources in the resource data. 3. Program design and description : F
- 2022-04-07 18:24:35下载
- 积分:1
-
一个minigui的程序,单击可以改变对话框 改变按钮颜色
一个minigui的程序,单击可以改变对话框 改变按钮颜色
- 2022-01-29 03:38:06下载
- 积分:1
-
正确判断操作系统版本
正确判断操作系统版本,用于判断OS各系统平台版本号
- 2022-03-03 15:50:32下载
- 积分:1
-
Kernel源代码,号称占有世界处理器操作系统60%的市场份额!...
T-Kernel源代码,号称占有世界处理器操作系统60%的市场份额!-T-Kernel source code, which claims to hold the operating system world processor market share of 60!
- 2022-03-30 19:49:34下载
- 积分:1
-
WINCE下,背光驱动源码.
WINCE下,背光驱动源码.
-WINCE, the backlight driver source code.
- 2022-05-25 17:09:24下载
- 积分:1
-
S3C44B0X开发实例源码,uCos系统,用SDT2.5开发
S3C44B0X开发实例源码,uCos系统,用SDT2.5开发-S3C44B0X examples of source code development, uCos system, developed by SDT2.5
- 2023-08-18 03:40:03下载
- 积分:1
-
bankers algorithm examples
银行家算法的实例-bankers algorithm examples
- 2022-06-14 00:56:56下载
- 积分:1
-
串口调试,串口监测,网络串口,虚拟串口
应用背景本人自己编写的,串口调试,串口监测,网络串口,虚拟串口工具,应用方面很多,可以实现串口应用在网络上透传,支持从线程多进程并发运行。 如需修改,可以自己修改或联系本人协商关键技术直接使用Window串口编程,没有使用任何插件,运行速度快,在串口设备的调试,监测,网络传送,虚拟端口等方面,应用不错。同时对于多线程和多个进程并行运行,适应性比较强,是串口设备调试的用助手。
- 2022-02-03 08:06:04下载
- 积分:1
-
麦克风阵列基于谱减法的语音增强的波束形成…
基于麦克风阵波束形成的谱相减方法在语音增强中的应用-Microphone array beamforming based on the spectral subtraction method speech enhancement application
- 2022-04-10 13:58:26下载
- 积分:1
-
一个操作系统源代码
一个操作系统源代码-an operating system source code
- 2022-06-03 15:11:00下载
- 积分:1