GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2025 set2

GATE 2025 set2 · CS · MSQ · 2 marks · Operating System › Virtual Memory

GATE 2025 set2 Computer Science and Information Technology question: Consider a demand paging system with three frames, and the following page reference…

Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2. The contents of the frames are as follows initially and after each reference (from left to right):

initially 1* 2* 3* 4* 5* 4 1 6* 4 5 1* 3* 2*
- 1 1 1 1 1 1 1 6 6 6 6 6 2
- - 2 2 4 4 4 4 4 4 4 1 1 1
- - - 3 3 5 5 5 5 5 5 5 3 3

The *-marked references cause page replacements.

Which one or more of the following could be the page replacement policy/policies in use?

  1. (A)

    Least Recently Used page replacement policy

  2. (B)

    Least Frequently Used page replacement policy

  3. (C)

    Most Frequently Used page replacement policy

  4. (D)

    Optimal page replacement policy

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion