Generate a random reference string of length

Assignment Help Operating System
Reference no: EM131449085

Belady'sanamoly says you can (slide 17, Lecture 8) the number of page faults is not always inversely proportional to the number of frames.

In this assignment you will experiment on this.

Your tasks are:

1. Generate a random reference string of length 30, (each number of the string is between 0 to 8).

2. You initialize the frame size as 1.

3. Run FIFO page replacement algorithm.

4. Count the page fault.

5. Increase frame size to 2 and repeat steps 3 and 4.

6. You will repeat step 5 until the frame size is 10.

7. Draw a graph and show the relationship between number of frames vs number of page fault ?(similar to the graph of slide 17, lecture 8)

8. Report this graph along with its explanation in a word/pdf file.

So finally you will be submitting your code and the report.

Verified Expert

This program code is written in JAVA programming language to compute the number of page faults using FIFO algorithm. The Client/ Driver program generates a reference string of length 30 where at each index of the string is a random value between 0 and 8. Further, an object of FIFO class is created and invokes the method, to compute the number page faults using FIFO algorithm, on it. This method is invoked for the frame size ranging from 1 to 10.

Reference no: EM131449085

Questions Cloud

Determining the international law : This last week's reading from our book solidified a concept that I was entertaining since Week 1; much of International Law is established through.
Design a dynamic programming algorithm : Design a dynamic programming algorithm to find the value of the optimal plan. Implement your algorithm using any programming language you prefer.
Define ethical criticism : Do you agree with the thought expressed in this chapter that a frm confronted with strong ethical criticism should abandon the product.
Define each protocol and describe two data transmission : Define each protocol and describe at least two data transmission technologies associated with the protocol. Include bandwidth limitations of each technology.
Generate a random reference string of length : Generate a random reference string of length - Run FIFO page replacement algorithm. ?Draw a graph and show the relationship between number of frames vs number of page fault
Explain the maxwell distribution : (The Maxwell distribution). Denote by = (1, 2, 3)T the velocity vector of a gas particle.
Determine the profit-maximizing price : If the firms produce good X at a marginal cost of $7 per unit and the market elasticity of demand is -2, determine the profit-maximizing price.
Identify and briefly describe two inherent risks : Identify and briefly describe TWO inherent risks, and TWO control risks of D-MERTON and explain how TYSL Accountants have responded to each risk
Fixed costs of production : The marginal cost of production is constant and is equal to $2. There are no fixed costs of production.

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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