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

  What instructions would you give people in a group session

What instructions would you give people in a group session about how to get their computers to look standardized?2. What policy would you suggest for what to put on the screen so it does not offend anyone?

  Commands to help root in managing users and groups

Write other commands, tools are available to help the ROOT in managing users and groups from command line or within a script.

  Write a brief description about the system calls

Write a brief description about the system calls used in Unix/Linux. Add information such as parameters, resources used, expected results/return values, and possible error conditions.

  What is probability that pre-fetching is on right track

Suppose that a computer pre-fetches 20 instructions in advance. However, on the average, four of these are conditional branches, each with a probability of 90% of being predicted correctly.

  Explain page trace analysis using fifo

Increase size of memory so it contains four page frames for public use. Using same page request as above and FIFO, do another page trace analysis and calculate the failure and success ratio.

  Local area networks

Assume you are the network manager for Central University, a average size university with 13,000 students. The university has ten separate colleges

  Vliw processor

VLIW processor - assembler

  Identify specific capabilities of computing

The creation and use of calculating technology enables new capabilities. For example, information and decision rules can be captured and copied more easily,

  Describe the various unix run levels

The first script that needs to be written is automating the shutdown procedure. Write a script that will perform the following tasks: Prompt the system administrator for all valid input parameters. describe the various UNIX run levels, what each lev..

  Draw curves for throughput-delay and power

Assume two hosts A and B are connected via router R. A-R link has infinite bandwidth; A-R link has infinite bandwidth; draw curves for throughput, delay, and power, each as function of load.

  What are some ways to integrate linux servers

What are some ways you could integrate Linux servers into a Windows network to share information? What would be the advantages and disadvantages?

  Security and data protection systems

Determine what fault tolerance, security, and information protection systems and procedures do you recommend be instituted on and for the corporation's network from the hypothetical condition below?

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