Lab VIII: Memory Management - Page Replacement

Date: 3 October 2019

In this lab, you will be extending the process simulator and memory manager written in the last lab. We will now handle the case where the total number of pages required for the processes exceeds the number of frames in physical memory. You will need to write a function that takes the PID of the process making a page request, and other data structures required for the different page replacement algorithms and returns the frame number in which the new page shall be loaded.

Write the following function: