GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 38

GATE CSE 2022 Q38

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2022 paper

GATE 2022, Q38 2 marks · MCQ
Report issue

Virtual Memory & Paging

Question 38, GATE 2022: Identify the intended FALSE virtual-memory statement: A a TLB searches all valid entries associatively in parallel by virtual page number; B a TLB hit followed by a cache miss guarantees the word is in main memory; C a given inverted page table has identical access time for all virtual addresses; D distinct virtual addresses hashing to the same value necessarily have different memory access times. Retain literal-model qualifications.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Our answer: C in the intended textbook model; D is also overbroad literally

Inverted page-table lookup can scan or follow collision chains of different lengths, so access time is not always identical: C is false. The intended model treats A as a fully associative TLB search and B as a valid, coherent TLB translation implying resident data memory. D is intended to distinguish positions in a serial hash collision chain, but its literal universal claim is not valid: two distinct virtual byte addresses in the same virtual page share the same hashed page entry and may have identical access time. Other collision-resolution and caching implementations also defeat the asserted necessity. Preserve official C, while disclosing that the question needs distinct-page, serial-chain and textbook TLB assumptions to make it uniquely false.

An inverted table has one entry per physical frame and needs to locate a process/virtual-page pair; search or hash-chain length can vary by input. In a serial collision chain, different pages at different positions may take different time, explaining the intended D. But distinct byte addresses with the same page number use the same entry, providing a concrete counterexample to its unqualified wording.

Original paper, page 25 · Answer key