Simulate and evaluate a virtual memory system

Assignment Help Operating System
Reference no: EM13917029

Virtual Memory Simulation

The objective of this lab is to simulate and evaluate a virtual memory system, and experiment with different page replacement algorithms. You will need a threads package, e.g., pThreads thread package.

Assume that you have a 16-bit address space, 16 KB of main memory, and 2 KB page size. Virtual memory simulation consists of three components: a virtual address generation component, address translation component, and a statistics reporting component. Implement each component by a separate thread.

The virtual address generation component generates a sequence of 16-bit virtual addresses and writes them in an integer buffer inBuffer of size 10. Write a function getNextVirtualAddress( ) for generating virtual addresses. This function may generate virtual addresses at random or based on a trace obtained from some source.

The address translation component implements virtual address to physical address translation using a page replacement algorithm (select a page replacement algorithm). This component reads the next virtual address from inBuffer and translates that address to a physical address. It prints the virtual address and corresponding physical address in a file. It also increments an integer variable (numberOfPageFaults) on every page fault. Use appropriate bit operations (<<, >>, ~, |, &, etc.) to implement this address translation. Feel free to implement a separate version of this component for every page replacement algorithm you want to experiment with.

The statistics reporting component prints the total number of page faults (numberOfPageFaults) at the end.

Deliverables

You will submit four separate files to the dropbox for Week 6:

1. C or C++ program (source code)

2. Executable file (object), and

3. Instructions to execute the program

4. Analysis of the results for the chosen page replacement algorithm used

Reference no: EM13917029

Questions Cloud

Managing a large financial project : Your company has just hired a new CEO, and you make an appointment with her to discuss a large financial project that you have been managing. You make the following statement:
Calculate the completion time : Assume the number of days it takes a homebuilder to complete a house is normally distributed with an average completion time of 176.7 days and a standard deviation of 24.8 days. Calculate the completion time that the builder has a 40% probability ..
Please incorporate each bullet item : Utilizing the concepts from this course, prepare the project plan based on the information on this case study. The topics from this class are listed below. Please incorporate each bullet item into your plan.
Some specific cost and profit information to complete : In order to help out the CEO, you need to prepare a six- to eight-page report that will contain the following information (including exhibits, but excluding your references and title page). Refer to the accompanying Excel spreadsheet (available throu..
Simulate and evaluate a virtual memory system : Simulate and evaluate a virtual memory system, and experiment with different page replacement algorithms. You will need a threads package, e.g., pThreads thread package.
Conduct the same two-tail hypothesis test : Fast ‘n Clean operates 12 laundromats on the east side of the city. All of Fast ‘n Clean's clothes dryers have a label stating "20 minutes for $1.00." Conduct the same two-tail hypothesis test, but this time use the confidence interval app..
Describe the market forces and the non-market forces : Describe the market forces and the non-market forces that have lead to an increase in inequality over the past few decades and what are payday loans? Why do people use payday loans? What impact do payday loans have on poverty? Discuss.
Legal and ethical considerations in marketing-product safety : You are a new associate at the law firm of Dewey, Chetum, and Howe. John, a former researcher at PharmaCARE, comes to your office. He has concerns about PharmaCARE's use of AD23, one of the company's top-selling diabetes drugs.
Discuss factors burger king management may have considered : Discuss the factors Burger King management may have considered before choosing a communication channel to deliver this important news.

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