CS FundamentalsHardGATE CS

Reference string: 6, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 3 frames, initially empty. After all references are processed under LRU, which pages are in memory?

  1. A. {0, 1, 2}
  2. B. {0, 1, 3}
  3. C. {1, 2, 3}
  4. D. {0, 2, 3}

Correct answer: C. {1, 2, 3}

LRU keeps the three most recently used distinct pages, which at the end are the last three distinct references: [1, 2, 3]. FIFO would hold [0, 1, 2].

More Operating Systems questions

Exams that ask this topic