Question
In a system using the Least Recently Used (LRU) page
replacement algorithm, which of the following statements holds true?ÂSolution
The Least Recently Used (LRU) page replacement algorithm replaces the page that has not been used for the longest time. It can be implemented efficiently using a hash map and a doubly linked list or queue. The hash map is used to store the pages, and the linked list is used to track the most recently used pages. This ensures O(1) time complexity for both the lookup and replacement operations. Option A (Replaces the page that has been in memory the longest): This is incorrect. LRU replaces the least recently used page, not the one that has been in memory the longest. Option C (Replaces the page that has been accessed the least): LRU doesn’t replace the least accessed page; it replaces the least recently used page. A page could be accessed frequently but not recently. Option D (Causes high page fault rates in large systems): While LRU does result in page faults, it is no worse than other algorithms. In fact, LRU minimizes page faults compared to algorithms like FIFO. Option E (Less efficient than FIFO): LRU is generally more efficient than FIFO as it better tracks page usage history, whereas FIFO might replace a page that is frequently used but just older in the queue.
Who is known as the father of economics?
Chemosterilants are the chemical compound used to control economically destructive or disease-causing pests by causing
The important feature of shifting cultivation is ________
What is the budget allocation for the Ministry of Rural Development for 2024-25?
Ability of a system to manage the resources of agriculture to satisfy changing human needs, while
maintaining or enhancing the natural resource...
Khaira disease in rice is due to deficiency of:
Deficiency of several elements is exhibited first in the apical region of the growing part due to
their:
Khaira Disease of rice is due to the deficiency of
What type of radiation is trapped on earth’s surface as a result of greenhouse effect
Which of the following gases has 20 times more potential for causing global warming than CO2