请求调页存储管理方式的模拟NRU.docxVIP

  • 17
  • 0
  • 约3.69千字
  • 约 5页
  • 2020-10-17 发布于山东
  • 举报
#include stdio.h #include stdlib.h #include string.h #ifndef _UNISTD_H #define _UNISTD_H #include IO.H #include PROCESS.H #endif #define TRUE 1 #define FALSE 0 #define INVALID -1 #define NULL 0 #define total_instruction 320 /* 指令流长 */ #define total_vp 32 /* 虚页长 */ #define clear_period 50 /* 清 0 周期 */ typedef struct /* 页面结构 */ { int pn,pfn,counter,time; } pl_type; pl_type pl[total_vp]; /* 页面结构数组 */ struct pfc_struct { /* 页面控制结构 */ int pn,pfn; struct pfc_struct *next; }; typedef struct pfc_struct pfc_type; pfc_type pfc[total_vp],*freepf_head,*busypf_head,*busypf_tail; int diseffect, a[total_ins

文档评论(0)

1亿VIP精品文档

相关文档