文件名称:dijkstra
介绍说明--下载内容均来自于网络,请自行研究使用
银行家算法
1. 实验目的:
用高级语言编写和调试一个利用银行家算法避免死锁的程序,以加深对分配资源时如何避免死锁的理解。
2. 实验内容:
编写一个模拟程序,完成避免死锁的模拟,要求采用dijkstra的银行家算法。
实验具体包括:首先确定可利用资源向量的数据结构、最大需求矩阵,分配矩阵,需求矩阵,然后完成银行家算法、安全性算法等程序代码 最后编写模拟过程的主函数,上机实验并取得结果数据。
-Banker' s Algorithm 1. Experimental purposes: the preparation and use of high-level language debugging a bankers algorithm avoid deadlock using the procedures in order to deepen their understanding of the allocation of resources understanding how to avoid deadlock. 2. Experimental Content: to prepare a simulation program, the completion of the simulation to avoid deadlock for the adoption of the banker' s algorithm dijkstra. Experiments include: First of all available resources to determine the vector data structure, the largest demand matrix, the distribution matrix, the demand matrix, and then complete the banker' s algorithm, security algorithm, such as program code the final preparation of the main function of simulation, experiment and get the machine the resulting data.
1. 实验目的:
用高级语言编写和调试一个利用银行家算法避免死锁的程序,以加深对分配资源时如何避免死锁的理解。
2. 实验内容:
编写一个模拟程序,完成避免死锁的模拟,要求采用dijkstra的银行家算法。
实验具体包括:首先确定可利用资源向量的数据结构、最大需求矩阵,分配矩阵,需求矩阵,然后完成银行家算法、安全性算法等程序代码 最后编写模拟过程的主函数,上机实验并取得结果数据。
-Banker' s Algorithm 1. Experimental purposes: the preparation and use of high-level language debugging a bankers algorithm avoid deadlock using the procedures in order to deepen their understanding of the allocation of resources understanding how to avoid deadlock. 2. Experimental Content: to prepare a simulation program, the completion of the simulation to avoid deadlock for the adoption of the banker' s algorithm dijkstra. Experiments include: First of all available resources to determine the vector data structure, the largest demand matrix, the distribution matrix, the demand matrix, and then complete the banker' s algorithm, security algorithm, such as program code the final preparation of the main function of simulation, experiment and get the machine the resulting data.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
dijkstra.c