文件名称:dijkstra
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.3kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
银行家算法
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.