Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Compare the performance of the following page replacement algorithms: FIFO, LRU

ID: 3857303 • Letter: C

Question

Compare the performance of the following page replacement algorithms: FIFO, LRU (Least recently used), MRU (most recently used), and optimal. You will be provided with a file containing the virtual addresses that are being referenced by a single program (a process). Run your program with the following parameters: Page size: 512, 1024, 2048 (words) Number of frames allocated to the process: 4, 8, 12 (So you will have 9 runs, with each page size and number of frames combination. Each run contains statistics for each of the four page replacement algorithms. You must collect and print the following statistics Page Size #of pages Page replacement ALG Page fault percentage Your report must show a summary of runs and your conclusions.

Explanation / Answer

The numbers represent an address that has to be mapped to a page and offset. If your page size is 512 with the first page loaded into one of the frames, and the numbers in the file are 0,1,2,...,511,512, then a page fault won't happen until 512.
I guess that the numbers are arranged to cause predetermined statistics.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote