页面置换算法(OPT、FIFO、LRU)实现--C++版本

上传者: cs9426478 | 上传时间: 2019-12-12 19:20:32 | 文件大小: 560KB | 文件类型: ZIP
该工程具体是在codeblock上面实现了操作系统课程上讲解的页面置换算法,包括先进先出(FIFO)、最佳置换算法(OPT)、最久最近未使用算法(LRU)。 具体实现功能有: 1、建立相应的数据结构 2、在屏幕上显示页面的状况 3、时间的流逝可用下面几种方法模拟:按键盘,每按一次可认为过一个时间单位; 4、将一批页的置换情况存入磁盘文件,以后可以读出并重放; 5、计算页面的缺页次数、缺页后的页面置换次数 6、支持算法:FIFO、LRU、最佳置换算法。

文件下载

资源详情

[{"title":"( 21 个子文件 560KB ) 页面置换算法(OPT、FIFO、LRU)实现--C++版本","children":[{"title":"Test","children":[{"title":"Test.depend <span style='color:#111;'> 758B </span>","children":null,"spread":false},{"title":"Test.layout <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"FIFO.cpp <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"OPT.cpp <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"Page.cpp <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"LRU.cpp <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"record.txt <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"record_LRU.txt <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"record_OPT.txt <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"Test.cbp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"main.o <span style='color:#111;'> 14.54KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Page.o <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false},{"title":"LRU.o <span style='color:#111;'> 133.70KB </span>","children":null,"spread":false},{"title":"FIFO.o <span style='color:#111;'> 132.57KB </span>","children":null,"spread":false},{"title":"OPT.o <span style='color:#111;'> 133.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Test.exe <span style='color:#111;'> 1.70MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"include","children":[{"title":"FIFO.h <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"LRU.h <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"Page.h <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"OPT.h <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • 氧气瓶666 :
    不错 用vs打开有些问题
    2018-05-10
  • 蓝色多瑙河SF :
    不错不错,运行可用,几种算法集合,学习了
    2017-03-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明