操作系统-实验-包括(处理机调度,页面置换,驱动调度,银行家).docVIP

  • 7
  • 0
  • 约1.91万字
  • 约 24页
  • 2017-02-01 发布于重庆
  • 举报

操作系统-实验-包括(处理机调度,页面置换,驱动调度,银行家).doc

操作系统-实验-包括(处理机调度,页面置换,驱动调度,银行家)

#include iostream #includestring.h #includestdio.h #include math.h #include stdlib.h #include time.h #define False 0 #define True 1 #define L 20//页面走向长度最大为20 #define MAX 100 using namespace std; int Max[100][100]={0};//各进程所需各类资源的最大需求 int Avaliable[100]={0};//系统可用资源 char name[100]={0};//资源的名称 int Allocation[100][100]={0};//系统已分配资源 int Need[100][100]={0};//还需要资源 int Request[100]={0};//请求资源向量 int temp[100]={0};//存放安全序列 int Work[100]={0};//存放系统可提供资源 int M=100;//进程的最大数为 int N=100;//资源的最大数为 int Memory; //内存块 struct Pro//定义一个结构体(页面置换) { int num,time; }; //处理器调度部分代码 struct p

文档评论(0)

1亿VIP精品文档

相关文档