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.
Suman paid ₹9,600 in interest on a loan she obtained 5 years ago with a simple interest rate of 16%. What was the amount of the loan she had taken?
A sum of money grows to Rs. 4,900 in 4 years and Rs. 5,600 in 6 years under simple interest. What is the original principal amount?
Anoop invested a sum at a simple interest rate of 8% per annum, and it grew to Rs.1,850 in 6 years. If the same sum is invested at a compound interest r...
- A bank offers interest at the rate of 10% per annum, compounded half yearly. Find the interest received at the end of the year on a sum of Rs. 30000.
The interest received by investing Rs. 4500 for 2 years at compound interest of 20% p.a., compounded annually, was re-invested for 3 years at simple int...
A sum of money grows to Rs. 5,400 in 6 years and Rs. 6,000 in 8 years under simple interest. What is the original principal amount?
A man invested certain sum at 8.5% p.a. simple interest for his son who was 20 years old. If the amount received by the son when he was 26 years old is ...
A invested Rs. ‘x’ in a scheme offering compound interest of 20% p.a. compounded annually. If at the end of 2 years, interest received by A was Rs. ...
1000 rupees is invested in a scheme p.a. simple interest. Another amount (1000 – x) is invested in scheme B at 2R% p.a. simple interest. After 5 y...
Nikhil invested two amounts, Rs. '2N' and Rs. '3N', at simple and compound interest rates respectively. The first amount, Rs. '2N', was invested at a si...