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?
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.
Which among the following represents the effective monetary policy transmission?
...
The rise in the prices which is caused due to reduction in the supply of goods and services in the economy is called
Which of the following establishments is/are exempted from the application of EPF and Misc Act 1952?
I. Establishments register...
General sales tax is a form of:
...Which sector involves the direct use of natural resources?
Which among the following country is known as the “Home of Collective Bargaining”?
Which of the following statements is/ are correct?
1. Budget Division of Department of Economic affairs prepares the budget
2. ...
Which of the following statements is/are incorrect about the “Wholesale Price Index (WPI)”?
I. WPI does not capture changes...
What was the objective of the e-Shram portal launched by the Indian Government in August 2021?
Which of the following establishments are covered under the Payment of Gratuity Act, of 1972?