You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This is an implementation of one of the paging algorithms
*
*
*/
publicclassLRU
{
/**
* @param args
*
* lru method that accepts a list and a resident set size as parameters.
* It makes a priority queue of the resident set.
* If a page is in the resident set, it checks if it's equal with the new page, and if it is, it will increment its useCount and set flag to true
* If page is not flagged, increment pages.if resident set is greater than the set size,take out the least recently used, create a new page and put it in the resident set