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.
Which pension fund scheme is open to all citizens of India and provides a defined contribution to the account?
Price risk is the risk of a decline in the value of a security or a portfolio. How can one transfer price risk?
A manager adhering to the principles of "Level 5 Leadership," as defined by Jim Collins, would be characterized by a unique blend of personal humility a...
The credit rating should have been reviewed at least once in how many months, for it to be valid for risk weighting purposes under Basel Ill?
According to the provisions of Section 127 of the Companies Act, 2013, if a company fails to pay the dividend, within a period of 30 days from the date ...
The Government of India has extended the PM Street Vendor’s AtmaNirbhar Nidhi (PM SVANidhi) Scheme beyond March, 2022 till ____________.
Legal risk in a bank can lead to which of the following?
                     I.       claims against institution,<...
The Nationalization of Banks in India took place in which year?
1)Â Â Â 1969
2)Â Â Â 1980
3)Â Â Â 2021
Consider the following statements:
1.   The Government’s spending on social services as a percentage of GDP has shown a rising trend sin...
Which of the following statements accurately describes the relationship between price and quantity demanded/supplied, considering potential exceptions?