Question
In a virtual memory system, a process requests a page
that is not currently in memory, triggering a page fault. Which of the following is the most optimal approach to replace the page?Solution
The Optimal Page Replacement algorithm replaces the page that will not be used for the longest duration in the future. While not practically implementable due to the need for future knowledge, it serves as a theoretical benchmark for evaluating other algorithms. It minimizes the number of page faults. Why Other Options Are Incorrect: β’ A) LRU: Although practical, LRU does not guarantee the lowest page faults as it only considers past usage. β’ B) FIFO: FIFO can cause frequent page faults due to the lack of relevance to actual usage patterns. β’ D) Random: Random selection is arbitrary and inefficient. β’ E) MFU: Assumes pages used frequently in the past will be required again, which is often incorrect.
A boat covers 132 km downstream in 3 hours and 96 km upstream in 4 hours. The boat takes 8 hours to travel 'D' km upst...
Speed of a boat in still water is three times the speed of the boat in upstream. If the boat takes 50 minutes to cover 25 km in downstream, then find th...
The ratio of the speed of the boat in upstream to that in downstream is 5:9, respectively. If the speed of the current is 10 km/h, find the speed of the...
Speed of a boat in still water is 3 times more than the speed of stream. If boat covers 135 km in downstream in 9 hours, then find the time taken by the...
Speed of the boat in still water and the downstream speed of the boat are in the ratio of 5:6 respectively. The boat covers 80 km upstream and 72 km dow...
The speed of a boat in still water is 6 km/hr more than that of the current. The time taken by the boat to cover 925 km downstream is 18.5 hours. Find t...
The speed of a boat in downstream is 20% more than speed of boat in still water. If the boat travels a distance of 90 km upstream in 15 hours then find...
The ratio of the speed of boat βAβ in still water, the speed of boat βBβ in still water and the speed of the current is 8:5:2, respectively. If ...
- A boat has a speed of 18 km/h in still water, while the stream flows at 6 km/h. How much time (in hours) will it take the boat to travel 180 km upstream an...
Speed of a boat in still water to speed of boat in upstream is 12: 7. If the boat can travel 425 km in downstream in 5 hours, then find the time taken b...