Skip to content
GATEiit

GATE CSE 2017 Session 1 Q50: Belady's anomaly: random page replacement and LRU

Syllabus topic: Memory management and virtual memory

Question

Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements:

S1: Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly

S2: LRU page replacement algorithm suffers from Belady's anomaly

Which of the following is CORRECT?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2017 final answer key)

Concept used: Stack algorithms such as LRU and Optimal never show Belady's anomaly; non-stack policies such as FIFO, and random replacement (which can behave like FIFO), can.

Concept notes

Loading notes…

First step: Recall the stack (inclusion) property: is the set of pages in memory with k frames always a subset of that with k+1 frames for each policy?

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Memory management and virtual memory

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key