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.
Which of the following is the correct order of the sentences after rearrangement?
P. We lived in very small groups, about 50 people, groups th...
Given below are four jumbled sentences. Select the option that gives their correct order. Â
A. Far below he saw green meadows and in their midst...
1. The banking Laws (Amendment) Bill, 2011
A. in March, 2011, had proposed
B. providing voting rights
C. to investors commensurate ...
Which is the LAST sentence of the paragraph?
1. If someone is trying
P. conflict, sometimes theÂ
Q. to goad you into a verbal
R. is simply walk away
S. best th...
Given below are four sentences, which are jumbled. Pick the option that gives the correct order.
P - Hold it for a few seconds, not more than fiv...
Given below are four jumbled sentences. Select the option that gives their correct order. Â
A. The mountaineers set up a camp at a height of 150...
Given below are six sentences. A and F are the first and the last sentences. The rest of the sentences namely B, C, D and E are jumbled. Select the opt...
1. Even though plants and animals
P. if their occurrence is natural,
Q. can adapt themselves to
R. changes in nature
...In the following questions, a sentence is given with two blanks. Identify the correct pair of words that fit in the sentence to make it grammatically a...