登录
首页 » Unix_Linux » banker_by_array

banker_by_array

于 2008-11-15 发布 文件大小:8KB
0 346
下载积分: 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 个回复

  • dos
    一个虚拟DOS操作界面的小系统,一共有9条命令,可以在里面增加命令实现更多功能。(A virtual DOS interface small system, a total of 9 orders, which increased in order to achieve more.)
    2007-12-16 16:15:20下载
    积分:1
  • diaodu
    这是一个进程调度问题~~~~还是有很多的问题哦(This is a process of scheduling problem ~ ~ ~ ~ still has many problems Oh)
    2007-10-22 19:11:43下载
    积分:1
  • hujianbo
    我的银行家算法,大家来看看。 若要密码 265913(I bankers algorithm, we take a look at. To password 265913)
    2007-01-05 16:48:04下载
    积分: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
  • 最佳适应法
    采用首次适应法、最佳适应法或最差适应法,编写一内存分配和回收模拟程序。 动态地随机产生新的“内存分配”或“内存回收”请求,再按照你选定的分配算法修改这个数组。由于这个实验的重点在于内存分配,所以不考虑与某内存区相关的进程情况。(used first to adapt, adapt best or the worst adaptation law, the preparation of a memory allocation and recovery simulation program. Dynamic random to create a new "memory allocation" or "memory recovery" request, then you have chosen in accordance with the allocation algorithm to change the array. As the focus of this experiment is memory allocation, it is not considered relevant to a certain memory area of the process.)
    2004-09-07 01:37:09下载
    积分:1
  • 计算机
    说明:  操作系统提供一系列服务: 多任务、用户界面、内存管理、内存保护、 文件存取、网络、设备控制、硬件控制 、错误检测及恢复系统、安全(The operating system provides a range of services: Multitasking, user interface, memory management, memory protection, File access, network, device control, hardware control, error detection and recovery systems, security)
    2020-06-21 20:40:01下载
    积分:1
  • Simwumpus
    经典问题魔兽世界(wumpus world)的程序,还比较简单,只能在dos下文字表示,没有图示(classic World of Warcraft (chat world) procedures, but also relatively simple, only under the dos text, there is no icon)
    2020-11-15 13:19:41下载
    积分:1
  • ucore-thumips-ucore-fix
    这是个一个基于mips的开源操作系统ucore.(An operating system based-on mips.)
    2020-07-11 10:08:54下载
    积分:1
  • Nucleus_rtos
    详细的介绍了Nucleus的使用方法 Nucleus PLUS嵌入式操作系统是目前最受欢迎的操作系统Nucleus PLUS 是为实时嵌入式应用而设计的一个抢先式多任务操作系统内核,其95%的代码是用ANSIC写成的,因此非常便于移植并能够支持大多数类型的处理器。(rtos of Nucleus)
    2009-12-11 16:58:06下载
    积分:1
  • jlspcmd
    银行家算法的实现原理(Principle)
    2004-10-20 20:28:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载