answersLogoWhite

0


Best Answer

Least recently used page algorithm simply says that while replacing a page from memory we should choose that page which has been used least in the recent time.

Suppose we have a reference string 4,0,4,3,6,8. Now suppose memory has a capacity to hold at most four page at a time.Suppose it is holding page 4,0,3,6.While accessing page 8 a page fault will occur as it is not in the memory.So we have to replace a page from the memory so that a new page ie page 8 can be brought in the memory.Now according to LRU algorithm we have to replace that page which has been used least in the recent time.We look at the reference string and find that it is page 0 which has been used least recently so we will choose page 0 for replacing it with page 8.So now we will have page 4,8,3,6 in the memory.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is least recently used page replacement algorithm?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain the lru algorithm from the page replacement algorithm?

First In First Out (FIFO) – This is the simplest page replacement algorithm. ...Optimal Page replacement – In this algorithm, pages are replaced which would not be used for the longest duration of time in the future. ...Least Recently Used – In this algorithm page will be replaced which is least recently used.First In First Out (FIFO) – This is the simplest page replacement algorithm. ...Optimal Page replacement – In this algorithm, pages are replaced which would not be used for the longest duration of time in the future. ...Least Recently Used – In this algorithm page will be replaced which is least recently used.


How do you solve problems of optimal page replacement of algorithm?

plz solve 4201261402357 reference string by optimal page replacement algorithm


Which page replacement algorithm suffers from Belady's anomaly?

Belady's anomaly is a situation when (for a particular page replacement algorithm) on increasing the available no. of physical frames the PAGE FAULT also INCREASES. >>Generally the page fault should decline on increasing the number of frames. Belady even proved it with FIFO. So, optimal page replacement algo was developed =>it seeks into the future and replace those pages which won't be used for along time. As it is practically difficult to implement so the reverse is done ==>LRU(Look into the past for pages that are least recently used assuming that they will not be used in the future too.)


Which page replacement algorithm unix uses?

Different versions of Unix use different methods of page replacement depending on situations; there is no one size fits all. You will need to check for the specific version of Unix you are interested in and ask the vendor.


What is belady's anomaly problem?

Belady's anomaly is a situation in which increasing the number of page frames for a page replacement algorithm can worsen the algorithm's page fault rate. This contradicts the common belief that providing more resources should always improve performance. It highlights the complexity and unpredictability of memory management in computer systems.


What is difference between Local and global page replacement?

Global page replacement involves competition between processes as there are a limited number of frames. This results in more page faults. In local page replacement, there is the principal of locality where the pages are based on the most frequently used, least frequently used, or some other 'prediction' policies which imply that certain pages are more lkely to be used than others.


What purpose does the referenced bit served in a demand paging system?

It indicates whether the page has been called (referenced) recently. This bit is important because it is used by the LRU algorithm to determine which pages should be swapped out.


Who is Google's link-analysis algorithm named after?

It was named after Larry Page, co-founder of Google Inc.


How can I increase page rank for website with out having links?

Page rank is an algorithm based off links, a page rank on a website will only increase or reduce in conjunction with the quality and quantity of incoming links.


I received my diploma back I'm 2005 and I misplaced it recently is there a way I can get a replacement?

Visit the website of the city or county school system where you graduated from high school. In the "Search" box on the school system's home page, type "Replacement diploma" and click "Search.". Click on the "Diploma Replacement Form" link to print a copy of the form in a PDF, Microsoft Word or Excel format.


Can you browse questions in the order they were asked?

Currently, no, you cannot browse questions in the order they were asked. However, in the unanswered questions section of any category, the first questions you see on the screen are the most recently asked, and the last question on the last page is the least recently asked.


What is the algorithm behind Google's Page Rank?

For a detailed explanation read the original Page Rank doc by Googles founders (see related links below)