I need a program that explicitly follows the prompt I gave you. It reads the input files [login to view URL] and [login to view URL] (this portion is already done.) It needs to make a page table for each process that maps virtual pages to physical frames in memory. (Must include: in0memory, reference bit, frame address, time stamp or its age.) I need an option (0,1) through the terminal wether to allocate an equal number of frames and allocate a number of frames proportional to the process's size.( do not assign specific frames to a process ahead of time.) Then implement four page eviction methods, FIF< Second Chance, LRU, and LFU. Make sure the eviction algorithms can be done globally or locally. Lastly, the program must display page fault rate to the user, total number of page faults vs accesses and page fault percentage, the average fault percentage for all processes, and write a file "[login to view URL]" for very n memory access.
In this project I am creating in which I need to implement a page table, the process for page frame allocation, and page eviction methods. For the page Table I know I will need to store in-memory, reference bit, frame address, and a time stamp/age. For page eviction, I will be implementing 4 different types to compare: FIFO, Second Chance, LRU, and LFU. I have a great base to start off with and need some guidance along the way. I will be more than happy to share what I have so far and the prompt if you would like to look at it.