Give the average frame replacements for each

Assignment Help Computer Engineering
Reference no: EM1335317

For this assignment, you will create a program that automatically generates numbers between a range provided by the user and stores them in an array. Your program will then calculate the number of page faults using replacement algorithms and provide the average frame replacements for each.

STEPS

1. Write a program using C++ or Java that will automatically generate x numbers between a range provided by the user?for purposes of this assignment, the range can be 1-20?and store them in an array.

2. Your program should then calculate the number of page faults using an LRU, FIFO and optimal replacement algorithm using 1-20 frames individually. Verify the results before moving on.

3. Your program should then execute this process for inputs 1-20 for the range at least 100 times automatically and generate 1,000 numbers each time.

4. The program should test for 1, 5, 10 , 15 and 20 frames each time, using LRU, FIFO and optimal replacement algorithm, providing the average frame replacements for each.

Reference no: EM1335317

Questions Cloud

Discuss possible ways to improve service quality : Discuss possible ways to improve service quality in a custodial janitorial company specializing in contract maintenance of office space.
Response to the future of criminal justice : Why is terrorism a Law Enforcement concern? How is terrorism a crime?
Attributes of high-performing project teams : What would you consider the attributes of high-performing project teams?
Workplace and sexual harassment : Workplace and Sexual Harassment - Need some assistance in answering the following questions in regards to a mini case study involving harassment.
Give the average frame replacements for each : you would create a program that automatically generates numbers between a range provided by the user and stores them in an array. Your program will then calculate the number of page faults using replacement algorithms and provide the average frame..
Difference among national income-gross national product : Illustrate what is the difference among National Income, Gross National Product, and Gross Domestic Product? Why do most countries now use GDP as a measure of national output?
Calculate the percent change in real gdp : Calculate the percent change in real GDP
Positive or negative incentive to improve situation : What kind of positive or negative incentive could have improved this situation?
Virtual worker versus the traditional worker : With so much information available, is there a difference in how much information needs to be provided to the virtual worker versus the traditional worker? If so, explain how.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Creating new information technology systems for a company

Creating new information technology systems for a company requires the staff to understand reasoning and operation of the systems in which they interact. How will you create the support needed to create the recommended information systems and prep..

  Algorithm for carrying out concatenation operation

Develop an algorithm that concatenates T1 and T2 into the single binary search tree. The worst case running time must be O(h), where h is the maximum of h1 and h2, the heights of T1 and T2.

  What is the cookie

What is a cookie? What are advantages and disadvantages of using cookies in a web application.

  Advantages and disadvantages of implementing a dfs

Advantages and disadvantages of implementing a DFS

  Why are computer simulations

Why are computer simulations playing an increasingly important role in science and engineering.

  Peer-to-peer networking

Explain the term peer-to-peer networking? Describe why is bit torrent regarded to be a more efficient protocol? In the bit torrent context, explain how seeders and the leechers work.

  Design a class street that includes a number

Design a class Street that includes a number

  How important is it to keep the site current

How important is it to keep the site current.According to "Putting Business Online Isn't Always Easy" (2005), "the biggest mistake people make is failing to know the commitment a Web site demands."

  What is a best way to address issues

What is the best way to address issues and concerns in a Real network management system (NMS) as it pertains to the processes that take place through out network discovery and mapping of the network.

  Estimating the running time of quicksort

The running time of quicksort may be improved in practice by taking the benefit of the fast running time of the insertion sort when its input is "nearly" sorted.

  Algorithm for computing a topological ordering of a dag

But assume that we're given an arbitrary graph that may or may not be a DAG. Extend the topological ordering algorithm so that given an input directed graph G it outputs one of two thing.

  Write down a program that includes a function picnic()

The passed floating-point number represents TOTAL amount of money to be spent on food. The function is to determine the quantity of HOTDOGS, HAMBURGERS,SALAD,PICKLES that can be purchaced, writing these values directly into the respective variable..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd