文件名称:银行家法
介绍说明--下载内容来自于网络,使用问题请自行百度
一、实验目的:
熟悉银行家算法,理解系统产生死锁的原因及避免死锁的方法,加深记意。
二、实验要求:
用高级语言编写和调试一个描述银行家算法的程序。
三、实验内容:
1、 设计一个结构体,用于描述每个进程对资源的要求分配情况。包括:进程名——name[5],要求资源数目——command[m](m类资源),还需要资源数目——need[m],已分配资源数目——allo[m]。
2、 编写三个算法,分别用以完成:①申请资源;
②显示资源;③释放资源。(动态完成)-an experimental purposes : bankers familiar with the algorithm generated Deadlock understand the reasons and ways to avoid deadlock deepened memory. Two experimental requirements : high-level language writing and debugging an algorithm bankers described the procedure. 3, experiment : one, design a structure, which is used to describe each process of resource allocation of the request. Including : process name -- name [5], the number of requests for resources -- command [m] (m category resources), the number of required resources -- need [m], resources have been allocated number -- allo [m]. 2, the preparation of three algorithms, which were completed : for resources; indicated resources; freeing resources. (Dynamically)
熟悉银行家算法,理解系统产生死锁的原因及避免死锁的方法,加深记意。
二、实验要求:
用高级语言编写和调试一个描述银行家算法的程序。
三、实验内容:
1、 设计一个结构体,用于描述每个进程对资源的要求分配情况。包括:进程名——name[5],要求资源数目——command[m](m类资源),还需要资源数目——need[m],已分配资源数目——allo[m]。
2、 编写三个算法,分别用以完成:①申请资源;
②显示资源;③释放资源。(动态完成)-an experimental purposes : bankers familiar with the algorithm generated Deadlock understand the reasons and ways to avoid deadlock deepened memory. Two experimental requirements : high-level language writing and debugging an algorithm bankers described the procedure. 3, experiment : one, design a structure, which is used to describe each process of resource allocation of the request. Including : process name -- name [5], the number of requests for resources -- command [m] (m category resources), the number of required resources -- need [m], resources have been allocated number -- allo [m]. 2, the preparation of three algorithms, which were completed : for resources; indicated resources; freeing resources. (Dynamically)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
银行家算法.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.