engineering recuitment NIELIT Scientific Assistant Mock Test 2025 Operating Systems Virtual Memory Page Replacement Policy
Suppose for a process P, reference to pages in order are 1, 2, 4, 5, 2, 1, 2, 4. Assume that main memory can accommodate 3 pages and the main memory has already pages 1 and 2 in the order 1 - first, 2 - second. At this moment, assume LRU Page Replacement Algorithm is used then the number of page faults that occur to complete the execution of process P is
1
6
2
4
3
3
4
5