CREATE OWN LIBRARY

Sample Questions

 

1. Most Frequently Used (MFU) and Least Frequently Used (LRU) is not commonly as page replacement algorithm because ________________________

 

(A) Both are expensive                       

(B) Both are not Optimal

(C) Implementation is not practical   

(D) None of these 

 

Solution:

 

Option (A) and (B) are correct.

 

Explanation:

Neither MFU nor LFU replacement is commonly used. The implementation of these algorithms is expensive, and they do not approximate optimal replacement well.

 

For more please followSome other page replacement algorithm.

 

2. Which is data-structure is suitable for the second chance page replacement algorithm

(A) Stack using linked list                 

(B) Queue using linked list 

(C) Queue using circular linked list   

(D) None of the above

 

You should Know

Before seeing the solutions please follow this chapter: 

Second Chance page replacement algorithm, Some other page replacement algorithm.

 

Solution:

 

Option (C) is correct.

 

Explanation:

If we used a linked list to implement second chance algorithm (modified version of FIFO)it requires extra time for it. So, unnecessarily extra time needed because it is constantly moving pages around on its list.

 

To overcome it, we can use a circular queue (using a linked list)in the form of a clock. A pointer (that is, a hand on the clock) indicates which page is to be replaced next.