GATE CSE 2017 Session 1 Q50: Belady's anomaly: random page replacement and LRU
- Operating System
- 2 marks
- MCQ
- −2/3 if wrong
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
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.
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
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive