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.
P rime Minister Narendra Modi inaugurated initiatives worth nearly Rs 5,000 crore for boosting the agri-economy in which region?
Which is the document governing the internal management of the company?
What minimum percentage of the required CRR, are banks required to maintain on a daily basis?
What does ethical egoism propose as the primary moral duty?
Job enrichment refers to _________
Shares in ABC Co have a beta of 0.8.
The market is giving a return of 15% and the risk-free rate is 8%
What will be ABC's cost of equity?
What was India's current account deficit (CAD) as a percentage of GDP in FY24 as per economic survey 2023-24?
When an existing company issues fresh shares, the existing shareholders get the priority to subscribe to these additional new shares, such shares are ca...
Which of the following statements is/are correct about the city of Singapore as a global financial center?
1) Singapore is the world's largest...
Which of the...