资源简介
采用 读取 文件的形式编写的~~~通过读入文件中的数据来实现银行家的算法~~
忘记传读取文件了,在我的资源里面有,下完这个去我的资源里找一下"银行家算法的文件格式"就行了
代码片段和文件信息
#include
#include
#include
using namespace std;
#define null 0
struct bankers
{
char name[10];
int resource[10];
int allocation[10];
int need[10];
int type;
}process[100];
struct bankers_copy1
{
char name_copy1[10];
int resource_copy1[10];
int allocation_copy1[10];
int need_copy1[10];
int type_copy1;
}process_copy1[100];//恢复数据用
struct bankers_copy
{
char name_copy[10];
int resource_copy[10];
int allocation_copy[10];
int need_copy[10];
int work[10];
}process_copy[100];//存序列
int process_numberresource_number;
int max[10]={1057};
int max_now[10]={1057};//存当前资源
int max_now1[10];
int max_now2[10];
int number[10];
int middle[10];
void init()
{
int total=0;
while(total {
sc
- 上一篇:自适应模糊pidC代码
- 下一篇:操作系统习题——可变分区存储管理
相关资源
- 银行家算法的实现(c++代码)
- 银行家算法实验报告.docx
- c++ 实验:可变分区管理
- 银行家算法Banker-s_Algorithm
- c++ 银行家算法
- 操作系统-银行家算法
- 银行家算法c语言代码
- 银行家算法实验报告C++版
- 银行家算法C语言实现
- 东华大学 操作系统实验 进程调度 含
- 武汉大学操作系统实验
- 操作系统课程设计银行家算法C语言版
- 操作系统实验 页式存储管理方案模拟
- C语言实现银行家算法
- 安徽大学操作系统实验七磁盘调度算
- 死锁的避免――银行家算法
- 操作系统实验进程调度MFC源码+实验报
- 银行家算法 C++
- 银行家算法 操作系统
- 银行家算法C语言实现
- 计算机操作系统实验一 进程创建模拟
评论
共有 条评论