Question
In the Least Recently Used (LRU) page replacement
algorithm, given the following reference string 4, 2, 4, 1, 5, 2, 3, 4, and assuming 3 frames, how many page faults will occur?Solution
LRU page replacement works by replacing the page that has not been used for the longest time. For the reference string 4, 2, 4, 1, 5, 2, 3, 4 with 3 frames, the page faults occur as follows: • Insert 4 (fault), Insert 2 (fault), Access 4 (hit), Insert 1 (fault), Insert 5 (fault, replace 4), Access 2 (hit), Insert 3 (fault, replace 1), Access 4 (fault, replace 5). Thus, there are 6 page faults in total. LRU minimizes page faults compared to other algorithms by always keeping the most recently used pages in memory. Why other options are wrong: A) 3 faults would require the reference string to contain repeated pages with no replacements. B) 5 faults underestimate the replacements required after the first few frames fill up. D) 7 faults occur in algorithms with more aggressive replacements like FIFO. E) 8 faults assume no page hits at all, which is incorrect since some pages are reused before replacement.
 According to the Taste Atlas Report, what is India’s ranking in the list of Best Cuisines, 2022?
Which city launched India's first Ayushman Bharat Digital Mission (ABDM) microsite?
The indigenous bullet train developed by India is based on the _______ platform.
Who will receive the Royal Gold Medal 2022, one of the world’s highest honours for architecture by the Royal Institute of British Architects (RIBA)?
Under which of the following section the merchant banker cannot carry on any business other than in the securities market?
The famed Gond painting has received the prestigious Geographical Indication (GI) tag. It is a traditional art form of which Indian state?
What is the main objective of KYC guidelines followed by Banks?
I- It helps prevent banks from using criminal networks.
II- KYC helps the ...
Price theory is also known as _________?
Which government owns Temasek Holdings (Private) Limited, a global investment company?
Who has recently become the FIH men’ s goalkeeper of the year?