Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN any lanugage. C++ is good or c! This project consists of implementing the optimal Page Replacement Algorithm on a reference string. As reviewed in

image text in transcribed IN any lanugage. C++ is good or c!

This project consists of implementing the optimal Page Replacement Algorithm on a reference string. As reviewed in class, the optimal Page Replacement Algorithm replaces the page that is not going to be used for the longest period of time. Your program should work as follows: Enter a reference string: 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 (required) Enter the of frames: 3 your program should be able to support any of frames) Running simulation: Start: Memory is: 7: Memory is 7 Page Fault (Number of Page Faults: 1) 0: Memory is 7 0 Page Fault (Number of Page Faults: 2) 1: Memory is: 7 0 1: Page Fault: (Number of Page Faults: 3) 2: Memory is 2 0 1: Page Fault: (Number of Page Faults: 4) 0: Memory is: 2 0 1: Hit: (Number of Page Faults 4) 3: Memory is: 2 0 3: Page Fault: (Number of Page Faults: 5) 0: Memory is: 2 0 3: Hit: r of Page Faults: 5) 4: Memory is 2 4 3: Page Fault: (Number of Page Faults 6) 2: Memory is: 2 4 3: Hit: r of Page Faults: 6) 3: Memory is: 2 4 3: Hit: (Number of Page Faults: 6) 0: Memory is: 2 0 3: Page Fault: (Number of Page Faults: 7) 3: Memory is 2 0 3: Hit: (Number of Page Faults: 7) 2: Memory is: 2 0 3: Hit: (Number of Page Faults: 7) 1: Memory is: 2 0 1: Page Fault: (Number of Page Faults: 8) 2: Memory is: 2 0 1: Hit: (Number of Page Faults: 8) 0: Memory is: 2 0 1: Hit: (Number of Page Faults: 8) 1: Memory is 2 0 1 Hit: (Number of Page Faults: 8) 7: Memory is: 7 0 1: Fault: (Number of Page Faults 9) 0 Memory is: 7 0 1: r of Page Faults: 9) 1: Memory is 7 o 1: Hit: (Number of Page Faults: 9) Total Number of Page Faults 9 You may implement Least Recently Used for Extra Credit. This assignment is due May 1, 2017

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

How do books become world of wonder?

Answered: 1 week ago

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago