ArchyCillp / Page_Replacement_Algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page_Replacement_Algorithms

Page Replacement Algorithms

0-FIFO, 1-LRU, 2-MIN, 3-Clock, 4-Second-chance

Input format:

  • First line for K(cache size), A(algorithm index), N(query number).
  • N lines for query page.

Ouput hit rate.

Author: Jiaping Cao 11610809@mail.sustech.edu.cn

If you want to run the not optimized version, please define NOOPT in compilation.

About


Languages

Language:C++ 100.0%