Created
June 10, 2016 15:49
-
-
Save CelestialStreamer/f68e42ea3df38eacf1fcc06fc77ce1a7 to your computer and use it in GitHub Desktop.
Cool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
* Program: | |
* Lab PageReplacement | |
* Brother Jones, CS 345 | |
* Author: | |
* Brian Woodruff | |
* Summary: | |
* Descriptive text ... | |
************************************************************************/ | |
#include "vmalgorithm.h" | |
/************************************************************************** | |
* Function: | |
* void LRU::execute() - Executes the LRU page replacement algorithm | |
* Inherited Variables and Methods: | |
* int NUM_FRAMES: How many frames there are in 'memory'. (eg. 4) | |
* int frames[NUM_FRAMES]: The array that contains the pages resident | |
* in memory. Use this array for the pages in memory. | |
* See Also: NUM_FRAMES | |
* int hit(int page): Function that scans the 'frames[]' array, searching | |
* for 'page'. If 'page' is found, it will return the index of | |
* the 'frames[]' array. If the page is not found, the function | |
* returns '-1'. | |
* int myPageFactory->getPage(): Returns the next page the psuedo-program | |
* requests. When there are no more pages to return, this function | |
* returns a -1. | |
* void display(int page, int frames[], bool fault): Function to display | |
* the information to stdout. The parameter 'page' is the current | |
* page (the one returned from myPageFactory->getPage()), 'frames[]' | |
* is the array of the current resident set, and when 'fault' is | |
* true, the display function will indicate it to the screen. | |
* This function must be called for every page that is accessed. | |
*************************************************************************/ | |
void LRU::execute() | |
{ | |
// Begin by erasing this message | |
cout << "LRU page replacement algorithm has not been implemented yet." | |
<< endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Were you hoping to find the completed assignment?