搜索资源列表
banker_by_array
- 本程序为自己在学习操作系统时独立根据书上所述的银行家算法制作而成,包括一个数组输入函数(Sr()),数组输出函数(Pr())和一个判断函数(test()),并通过指针传递参数,可以自定义进程数目和资源种类数目(源程序限10个以内,可自行更改数组)。 注:本程序是在linux环境下通过gcc编译器编译成功的。若移植到windows环境下可能在汉字显示部分出现乱码。-This procedure for their own independence in learning, when the o
as
- 编写C语言程序,模拟UNIX磁盘空间管理中使用的分组链接法。 1.定义一个记录磁盘块号的堆栈S—free[10],以及记录栈中现有磁盘块数的变量S—nfree。 2.定义一个由40个元素构成的结构数组block[40]用作磁盘块存放。 struct size { int blocl[10] } struct blocd { struct size a[10] //用于在空闲磁盘块号链中存放磁盘块号 }block[40] 3. 假设系统中文件的最大
lift_control_by_Vina
- 某一层楼20层,有五部互联的电梯。基于线程思想,编写了此电梯调度程序。 程序包含两个类: lift_control类 实现对电梯的生成和调度 dest类 当做静态类调用其中函数,实现对int数组的管理,包括insert(),size(),pop(),delete()等。-Floor of a 20-story, there are five interconnected elevator. Based on the thread of ideas, this elevator
