program and implement a virtual memory simulator based on Demand Paging. It will
ID: 3649677 • Letter: P
Question
program and implement a virtual memory simulator based on Demand Paging.It will be a text based application (NOT a GUI based one).
The programming language can be C
The following algorithms will be implemented: FIFO, OPT and LRU.
We will simulate the execution of each of these algorithms on a hypothetical computer having only four physical frames (numbered from 0 to 3), assuming that the single process that is running has a virtual memory of eight frames (numbered from 0 to 7).
The algorithms will be simulated based on a reference string (a sequence of pages that are to be accessed) that will be either read from the keyboard or randomly generated.
The program will be menu-based and the menu will have the following options:
0