Question: Please code in C++ the Optimal Page Replacement Algorithm Input should be: No. of frames: 3 No. of processes: 18 Processes: 7 0 1 2
Please code in C++ the Optimal Page Replacement Algorithm
Input should be:
No. of frames: 3
No. of processes: 18
Processes: 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7
Program should look like this (with 1 at the last row signifying the hits):

Enter The Total Number of Frames: 3 Enter the Total Number of Processes: 18 Enter processes: 7 0 1 20 3 0 4 2 3 0 3 2 1 2017 Process 7012 03 04 23 0 3 21 2017 Frame 0 7 7 7 2 2 2 2 2 2 2 2 2 2 2 2 2 27 Frame 1 EOOOOOO 4 4 400OOOOOO Frame 2 EE 1 1 1 3 3 3 3 3 3 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Hit: 9 Page Fault: 9 Hit Ratio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
