Struct definition as the page table entry

Assignment Help C/C++ Programming
Reference no: EM13504529

Use the following struct definition as the page table entry and the array that follows it as the page table. Implement the software simulation of least recently used algorithm in two C++ functions. Should RUN on UNIX.

The first one will implement the aging and will be called at every clock interrupt. The second one will return the index in the page table of the entry to be replaced using this algorithm.

//Testing file will be provided.

//Should be well commented.....

----------------------------------

typedef struct

{
word pageFrameLocation; /*called page frame number

byte recentlyUsedBits; /* this is the field you will use for aging*/

byte flags; /* see format of flags below*/

}

PageTableEntry;

PageTableEntry page_table[1024]; /* this is the global variable for the page table*/

/* the page table entries flags field has the following format, the high order bit (You can find if it is set by doing a bitwise and with the flags member and 0b10000000) is the referenced bit. The next highest order bit is the Modified bit. The next three bits are the protection bits (in order rwx [read/write/execute]) The next bit is the present/absent bit, the next bit is the caching disabled bit *

Reference no: EM13504529

Questions Cloud

Define system whose equalibrium constant is relatively small : Which of the following is true for a system whose equalibrium constant is relatively small? a.) it will take a short time to reach equalibrium.
Several quotes of freud that communicate anti-american : Bettelheim presents several quotes of Freud that communicate an "anti-American" attitude he held. Select two examples where Freud is expressing such an opinion. for each example, discuss how Freud's anti-American sentiment ties into his theory.
Explain the system is at equalibrium : a.) because Qc= 1, the system is at equalibrium. b.) Because Qc=1, more products will be formed. c.) Because Qc=1, more reactants will be formed. d.)Because Qc Kc,more reactants will be formed
Ecological system theory : Ecological system theory writing a paper and could use a few ideas! This is relation to social work.
Struct definition as the page table entry : Struct definition as the page table entry and the array that follows it as the page table. Implement the software simulation of least recently used algorithm in two C++ functions. Should RUN on UNIX.
Explain pressure changes at constant tempature : Which of the following equilibria would NOT be affected by pressure changes atconstant tempature. a.) CO(g) + 1/2O2(g) CO2(g) b.)CaCO3(s) CaO(s) + CO2(g)
Is psychotherapy more beneficial than psychiatric medication : Is psychotherapy more beneficial than psychiatric medication? Do college students consume more beer than other age groups? Do students remember information longer after preparing for essay exams than for multiple-choice exams?
Estimate the magnetic flux through the coil : The inductance of a closely packed coil of 350 turns is 9.5 mH. Calculate the magnetic flux (per winding) through the coil when the current is 5.0 mA
An explanation of how client culture : An explanation of how client culture may influence client perceptions of substance use. how could you use the information to determine if a client meets the criteria for a substance related disorder?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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