登录
首页 » Unix_Linux » banker_by_array

banker_by_array

于 2008-11-15 发布 文件大小:8KB
0 388
下载积分: 1 下载次数: 0

代码说明:

说明:  本程序为自己在学习操作系统时独立根据书上所述的银行家算法制作而成,包括一个数组输入函数(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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • program
    作业调度程序,模拟操作系统的作业调度过程,协调和控制各个作业对cpu的使用控制(Job scheduling program to simulate the process of the operating system job scheduling, coordinating and controlling the use of control operations on cpu)
    2011-05-19 17:32:58下载
    积分:1
  • xapp947
    Xilinx FPGA 上FPGA的VxWorks操作系统开发资料-2(Xilinx FPGA on the VxWorks operating system, the development of FPGA information-2)
    2009-01-08 20:30:56下载
    积分:1
  • EOSApp
    1)设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程。 2)父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中。? 3)两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。 4)考虑生产者进程生产的速度和消费者进程速度。(1) a program is designed to create three sub processes from one process, three sub processes is the producer process, and the two is the consumer process. 2) the father child process communicates with the shared storage area created by the parent process, and sends ten values in one array to the shared memory composed of 5 buffers by the producer process. L 3) the two consumer processes take turns to receive and output the ten values, and add values to each of the two consumer processes. 4) take into account the production speed of the producer process and the speed of the consumer process.)
    2020-12-23 09:19:08下载
    积分:1
  • Filesystem
    磁盘文件系统:建立基于磁盘存储设备的UNIX文件系统,在windows系统下模拟UNIX文件管理系统,可用命令行进行基本的文件操作。(Disk file system: the UNIX file system based disk storage devices in the windows system simulation UNIX file management system, basic file operations available command line.)
    2013-04-25 14:32:48下载
    积分:1
  • MyBank
    说明:  操作系统银行家算法,C#编写,比较漂亮,有用!(OS Banker' s algorithm, C# prepared, more beautiful, works!)
    2010-05-04 17:32:17下载
    积分:1
  • Linux0.11-V2
    linux 0.11内核源代码分析V2.0版 为V1.0版的修正版 (linux 0.11 kernel source code analysis V2.0 version V1.0 version of the amended version of)
    2008-01-12 22:19:22下载
    积分:1
  • 登录系统
    说明:  labview2018做的密码,主要实现控制系统登录,可以注册账号修改密码,密码成功进入主程序。(The password made by labview2018 is mainly used to log in the control system. You can register an account to change the password. The password successfully enters the main program.)
    2020-04-13 16:12:00下载
    积分:1
  • Algorithm-Design-Solution
    算法设计 习题解答 算法设计,ISBN:9787302143352,作者:(美)克林伯格(Kleinberg,J.),()塔多斯(Tardos,E.) 著,张立昂,屈婉玲 译(Algorithm design solution. Kleinberg,J. Tardos,E.)
    2021-01-04 10:48:56下载
    积分:1
  • 3590
    lear about microsoft tool in detail
    2014-08-21 14:42:37下载
    积分:1
  • labP3
    哈工大操作系统实验三,包括代码和实验报告,希望对同学有帮助(lab3 for Operating System in HIT)
    2012-11-08 16:14:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载