Question: (Please write program in C++) Write a C or C++ program that simulates the operation of 3 page replacement algorithms used in a virtual memory

 (Please write program in C++) Write a C or C++ program

that simulates the operation of 3 page replacement algorithms used in a

virtual memory management system: 1. FIFO (First-in-First-out) algorithm 2. Least Recently Used

(Please write program in C++) Write a C or C++ program that simulates the operation of 3 page replacement algorithms used in a virtual memory management system: 1. FIFO (First-in-First-out) algorithm 2. Least Recently Used (LRU) algorithm 3. Least Frequently Used (LFU) algorithm 4. Optimal algorithm You will simulate each algorithm on the input data sets and report the performance of each. A description of each of these algorithms appears in Chapter 9 of our text. In this lab assignment, you will be calculating the page fault rate of the each different page replacement algorithms for the given page reference string for one process only. Your program should accept three arguments, which are the number of page frames of the physical memory, the names of an input file, and an output file. The input file contains the page reference string in the order of page request, and the output file stores the display events and the analysis results. You will run each algorithms four times, the first time with 128 page frames, the second time with 256 page frames, the third time with 512 page frames, and the 4th time with 1024 frames. (Please write program in C++) Write a C or C++ program that simulates the operation of 3 page replacement algorithms used in a virtual memory management system: 1. FIFO (First-in-First-out) algorithm 2. Least Recently Used (LRU) algorithm 3. Least Frequently Used (LFU) algorithm 4. Optimal algorithm You will simulate each algorithm on the input data sets and report the performance of each. A description of each of these algorithms appears in Chapter 9 of our text. In this lab assignment, you will be calculating the page fault rate of the each different page replacement algorithms for the given page reference string for one process only. Your program should accept three arguments, which are the number of page frames of the physical memory, the names of an input file, and an output file. The input file contains the page reference string in the order of page request, and the output file stores the display events and the analysis results. You will run each algorithms four times, the first time with 128 page frames, the second time with 256 page frames, the third time with 512 page frames, and the 4th time with 1024 frames

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!