Develop a simulation program to investigate the relative effectiveness of the FIFO, LRU, and OPT page replacement strategies

in side the project.zip there are some file the you will use as input and “README” .you should read the data file “README” to know how to make the program. Also there are some data file “1p9595” and other you will use as input file. Develop a simulation program to
investigate the relative effectiveness of the FIFO, LRU, and OPT page
replacement strategies. Your program should measure the number of page
faults generated by each strategy.Your simulator should read a
reference string from a file. The reference string items will be of the
form: , where PID is a process ID and page ref is a page of that
process’ logical memory. There will be one reference per line of the
file. For example, the following might be the beginning of an input
file:1 451 461 451 441 452 452 462 472 472 46This
reference string corresponds to Process 1 accessing its pages 45, 46,
45, 44, and 45, then Process 2 accessing its pages 45, 46, 47, 47, and
46. We will assume a pure demand paging system (i.e., no pre­fetching).
The simulation also must allow the number of physical frames to be
specified. So for example, if there are 3 or more frames available, the
above reference string will cause 6 page faults for all three strategies
(one for each time a new page is referenced). If there are only 2
frames available, then there would be 6 page faults for LRU and OPT, and
7 page faults for FIFO.The
input file name and the number of physical frames may be entered
interactively or on the command­line. The output for this simulation is
the number of page faults generated for each replacement strategy. For
the purposes of making this simulation manageable, assume a program has
2 megabytes (2048 kilobytes) of virtual memory divided into 1K pages
(i.e., a program can generate page references from 0 to 2047), and there
will no more than 150 processes (PIDs 0 to 149). We also will assume a
global replacement strategy. That is, when a page fault occurs, the
victim page can be taken from any process. We will ignore the issue of
dirty pages by assuming that all victim pages have not been modified.Assignment (40 points)(20
points) This project is to be done individually. Each student must
implement a simulation meeting the specifications above for each page
replacement algorithm with a physical memory size (in frames) that can
be set for each run of the program.The simulator may be written
in any language for either Linux (projects must run on csserver) or
Windows (projects using any IDE available in CS Lab are acceptable).
However, the instructor can provide assistance only for C/C++ projects,
and maybe Java projects. Provide a makefile that will make your project
if it needs to be compiled. The file names and frame number value may be
provided to the simulation either as command­line arguments or
interactively. Hardcoding the test file names or frame number values
into the program is not acceptable.What to SubmitCreate a tarfile or zipfile containing the following:The
well­ documented code source code for your project. If you are
submitting a Windows project, submit the entire project folderA makefile to make your project, if neededA single document in PDF format containing(output):1-instructions on how to build and/or run the program.
project_.zip

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
Develop a simulation program to investigate the relative effectiveness of the FIFO, LRU, and OPT page replacement strategies
Just from $13/Page
Order Essay


Purchase answer to see full
attachment

GradeAcers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Order your essay today and save 15% with the discount code DISCOUNT15