GATE CS 2022 | Question 64

Operating Systems › Memory Management · NAT · 2 marks · Answer: 0.6

  1. Question 64Operating Systemsnat2 marks
    A demand-paging system with four frames (initially empty) and LRU, for the reference string 7,2,7,3,2,5,3,4,6,7,7,1,5,6,1, has page-fault rate (faults/accesses, one decimal) equal to __________.

    Answer: 0.6

    Solution

    Answer: 0.6 Reference string (15 accesses), 4 frames, LRU:
    7,2 -> faults ; 7 hit ; 3 -> fault ; 2 hit ; 5 -> fault (frames full)
    3 hit ; 4 -> fault (evict LRU) ; 6 -> fault ; 7 -> fault ; 7 hit ;
    1 -> fault ; 5 -> fault ; 6 hit? ... 1 hit
    Counting the faults gives 9 faults over 15 accesses: page-fault rate

More GATE PYQ on Memory Management

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2022 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →