2012年4月7日
摘要: 最近写了两个程序,模拟操作系统的算法,只是基本实现了课本上的基本功能,实际应该是很复杂的。模拟LRU页面置换算法: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 #define TN 3 //分配给该程序的主存页数 6 #define PN 10 //地址流 7 8 typedef struct PAGE{ 9 int kPage; //the kth line 分配给该程序的主存页数的索引 10 int aPag... 阅读全文
posted @ 2012-04-07 23:25 Seiyagoo 阅读(1313) 评论(0) 推荐(0) 编辑