Question
Implement a virtual memory manager as described in page 458 of the book . You also need to implement page replacement policy as suggested in
Implement a virtual memory manager as described in page 458 of the book. You also need to implement page replacement policy as suggested in the modifications section of the project description. You should use the clock replacement policy or second-chance algorithm as the page replacement algorithm. Use C++ as your language.
pdf book link..
http://materias.fi.uba.ar/7508/OSC9/Abraham%20Silberschatz-Operating%20System%20Concepts%20(9th,2012.12).pdf
working code link:
https://github.com/himank/Virtual-Memory-Manager/tree/master/src
**Please dont copy this code line by line..
first few lines of input textfile:
16916 62493 30198 53683 40185 28781 24462 48399 64815 18295 12218 22760 57982 27966 54894 38929 32865 64243 2315 64454
Sample output:
Virtual address: 16916 Physical address: 20 Value: 0 Virtual address: 62493 Physical address: 285 Value: 0 Virtual address: 30198 Physical address: 758 Value: 29 Virtual address: 53683 Physical address: 947 Value: 108 Virtual address: 40185 Physical address: 1273 Value: 0 Virtual address: 28781 Physical address: 1389 Value: 0 Virtual address: 24462 Physical address: 1678 Value: 23
I also have a binary file .bin for the program to read when a page fault happens. I'm not sure how to attach it here.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started