GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 3.5

Meaning of temporal locality

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

GATE 1997, Q3.5 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 3.5, GATE 1997: A page reference always repeats the previous page, is likely among recently used pages, always hits resident memory, or always faults.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Temporal locality is the tendency to reuse recently accessed data or instructions, for example within a loop. Hence the next page reference is likely to be among a recent working set, B. This is a statistical tendency, not an absolute guarantee. A program can move to a new phase and access a different page, and whether that page is resident depends on available memory and replacement history. Thus the three statements containing always are too strong.

Original paper, page 3