Details:
Produce statistics based on the behavior of page replacement algorithms LRU and Second Chance
Two Threads read 2 different trace files alternately and load them into main memory.
Main memory is implemented by a queue-array.
The virtual memory is implemented by a hash table for each thread.
Statistics include:
Queue size (memory frames number),
Total iterations, Total P1 (gcc) iterations, Total P2 (bzip) iterations,
Total pagefaults, Total hits, Total updates,
Total reads from disk, Total writes on disk
sudo apt install gcc -y
sudo apt install make -y