说明: 用CPP编写的,可以直接运行 源代码 #include #include #include #include #define Bsize 4 typedef struct BLOCK//声明一种新类型——物理块类型 { int pagenum;//页号 int accessed;//访问字段,其值表示多久未被访问 }BLOCK; int pc;//程序计数器,用来记录指令的序 号 int n;//缺页计数器,用来记录缺页的次数 static int temp[320];//用来存储320条随
<wyj160238353> 上传 | 大小:1mb