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.
If ‘WARMTH’ is coded as '62',’ MAJESTIC’ is coded as '32', then ‘HISTORICAL’ is coded as ____.
In a certain language NUMBERS is written as LVMCRSD. How is FORWARD is written as?
In a certain code language, 'apple mango pear papaya' is coded as 'wef, mfg, wrt, nje', 'papaya banana pear' is coded as 'vsa, mfg, wef' and 'pear apple...
Which of the following may be the code for ‘The Dreams Believe’?
In a certain code language, 'sunshine rose flower lotus' is coded as '2, 1, 8, 6', 'lotus flower marigold' is coded as '2, 1, 4’ and 'jasmine sunshin...
In a certain ode language, AL = 12, DIG = 252. What will be the code for FAR?
In a certain code language, ‘KPURKTG’ is written as ‘LRVVLBH’. How will ‘HQTIKXG’ be written in that language?
What is the code for ‘one’?
In a certain code language, 'resting room hotel hospitality' is coded as 'cg, nm, wq, sd', 'manager hospitality room' is coded as 'wq, sd, ot' and 'natu...
The code ‘Y14&’ stands for which of the following word?