banker_by_array
代码说明:
说明: 本程序为自己在学习操作系统时独立根据书上所述的银行家算法制作而成,包括一个数组输入函数(Sr()),数组输出函数(Pr())和一个判断函数(test()),并通过指针传递参数,可以自定义进程数目和资源种类数目(源程序限10个以内,可自行更改数组)。 注:本程序是在linux环境下通过gcc编译器编译成功的。若移植到windows环境下可能在汉字显示部分出现乱码。(This procedure for their own independence in learning, when the operating system on the basis of the book described in banker s algorithm produced, including an array of input function (Sr ()), array output function (Pr ()) and a judging function (test () ), and through pointer parameters, the process can customize the number and type of the number of resources (source 10 within limits, can make changes to the array). Note: This procedure is in the linux environment through the gcc compiler to compile successful. If transplanted into windows environment may display garbled characters.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!