De Anza College Virtual Memory Project
Question Description
I’m working on a c++ writing question and need an explanation and answer to help me learn.
Write a program in c++ to simulate the Least-Recently-Used (LRU) Page Replacement Algorithm that appears in the Virtual Memory chapter of the textbook. Start with a reference string of your choice and show how the algorithm works, step-by-step.
The output from the simulator should indicate whenever a fault occurs, and which page has been evicted (if one is evicted). In addition, the output should include the total number of faults that occurred for the given reference string.
The possible output would look something like:
Page Fault: no page evicted, page 0 brought in to memory.
Page Fault: page 2 evicted, page 3 brought in to memory.
: :
Total number of faults is 23.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."