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

  That takes the time as six integer arguments

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour, minute, and second) and returns the number of seconds since the beginning of the year.

  Write a program to find the average value

Write a program to find the average value, the largest value, and the smallest value of a set of numbers supplied as input from the keyboard. The number of values in the data set must be in the range 0 to 20, inclusive.

  Questionnbsp the template method pattern and the strategy

questionnbsp the template method pattern and the strategy pattern both abstract some computation in the form of

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Refresher on andys basic requirements

The game Battleship is back and better than ever. Instead of hacking everything together in C, you will instead leverage C++ and all of your newly gained object oriented programming knowledge to construct a much cleaner end product.

  Write a program that simulates an airplane race

Program will use a function that has the following parameters: time and acceleration and function will pass back two data items: speed and distance.

  Implement the delivery company using the classes given in

implement the delivery company using the classes given in the class diagram above. construct a cpp file named

  Assignment 1 boxing amoebadevelop a two dimensional

assignment 1 boxing amoebadevelop a two dimensional interactive game with the following features1.use opengl any

  Write a program that inputs two characters

Write a program that inputs two characters from the keyboard and passes them to function packCharacters.

  How the project teams and coaches master agile methodology

Analyze how the project teams and coaches master the agile methodology to solve business problems. Highlight the one that you believe is the most effective and support your answer.

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