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.
Boat βAβ can cover 180 km in still water in 12 hours. In still water, if the ratio of the speed of boat βAβ to that of βBβ is 3:4 and the sp...
A boat makes a journey from point P to point Q and return back in 6 hr 40 min. One way it travels with the stream and on the return it travel against th...
A boat covers 150 km downstream in the same time it takes to cover 90 km upstream. If the speed of the stream is 5 km/h, determine the speed of the boat...
Two boats X and Y start towards each other from two places, 155 km apart. Speed of the boat X and Y in still water are 14 km/hr and 17 km/hr respectivel...
Speed of a ship is 6 m/s, which increases by 2 m/s after every 5 minutes. It travels upstream for 15 minutes and then travels downstream for 15 minutes....
- A boat's speed in still water is 10 km/hr, and the current's speed is 3 km/hr. The boat takes a total of 15 hours to cover βxβ km each way (upstream an...
The speed of a boat in still water is 9 km/hr and speed of current is 5 km/hr. If time taken to cover a certain distance upstream is 14 hours, then how ...
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 speed of current is 35 km/hr. If the speed of the boat in still water had been 10 km/hr more than the original speed then it would take 6.2 hours to...
Speed of current is equal to 25% of speed of boat in still water. If the boat takes 14 hours to cover 140 km in still water, then find the time taken by...