MOSS Memory Management Simulator



Lab Work 3

  1. Create a command file that maps any 8 pages of physical memory to the first 8 pages of virtual memory, and then reads from one virtual memory address on each of the 64 virtual pages. Step through the simulator one operation at a time and see if you can predict which virtual memory addresses cause page faults. What page replacement algorithm is being used? (25 pt)

  2. Modify replacePage() in PageFault.java to implement a least recently used (LRU) page replacement algorithm. (45 pt)