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.
i) Who is sitting in the second place on the left side of the Dani, Chintu is sitting at the fourth place on the right side.
ii) There are three ...
Which number will replace the question mark (?) in the following series?
6, 20, 42, ?, 110, 156
Select the option that is related to the third word in the same way as the second word is related to the first word. (The words must be considered as me...
Which of the following numbers will replace the question mark (?) in the given series?
−1/729, −1/81, −1/9, ?
If a mirror is placed on the line AB, then which of the answer figures is the right image of the given figure?Â
Â
In a certain code language, ‘LENGTH’ is written as ‘MDKGSF’ and ESCAPE’ is written as ‘BRDDOZ. How will ‘MARGIN’ be written in that lang...
‘A @ B’ means ‘A is the wife of B’
‘A = B’ means ‘A is the brother of B’
‘A # B’ means ‘A is the son of B’
...
Select the correct mirror image of the given figure when the mirror is placed at MN as shown below.
Â
If a mirror is place on the line XY, then which of the answer figures is the mirror image of the given figure?
Select the figure that will come in place of the question mark (?) in the following figure series.