进程运行过程中,如果发生缺页中断,而此时内存中有没有空闲的物理块是,为了能够把所缺的页面装入内存,系统必须从内存中选择一页调出到磁盘的对换区。但此时应该把那个页面换出,则需要根据一定的页面置换算法(Page Replacement Algorithm)来确定。 2.1 最佳置换(Optimal, OPT) 2.1.1 基本思想 置换以后不再被访问,或者...
This project implements a simple thread-safe cache with several page replacement policies: Least Recently Used First-In/First-Out Least Frequently Used More about cache algorithms and policy you could read onWikipedia Usage Using this library is simple. It is necessary to include header with the ...