35 35 votes Locality of reference implies that the page reference being made by a process will always be to the page used in the previous page reference is likely to be to one of the pages used in the last few page references will always be to one of the pages existing in memory will always lead to a page fault Operating System gate1997 operating-system page-replacement easy + – Kathleen 15.3k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments ankit3009 commented Dec 11, 2021 reply Follow flag Temporal locality: Recently referenced items are likely to be referenced in the near future.Spatial locality: Items with nearby addresses tend to be referenced close together in time. 4 4 replyShare Shukla_ commented Jan 12, 2024 reply Follow flag T for Temporal, T for Time ie reuse of specific data within a small time frame S for spatial S for storage ie it refers to the use of data objects within storage locations that are close to each other. 4 4 replyShare ritiksri8 commented Dec 13, 2024 reply Follow flag It means accessing same or nearby locations repeatedly.... 1 1 replyShare Please log in or register to add a comment.
Best answer 42 42 votes Answer is (B) Locality of reference is also called as principle of locality. It means that same data values or related storage locations are frequently accessed. This in turn saves time. There are mainly three types of principle of locality: temporal locality spatial locality sequential locality This is required because in programs related data are stored in consecutive locations and in loops same locations are referred again and again Neeraj7375 answered Nov 5, 2016 • edited Jun 28, 2018 by kenzou Neeraj7375 comment Share Follow See all 3 Comments 3 3 Comments reply rishi71662data4 commented Oct 29, 2017 reply Follow flag Ref: https://stackoverflow.com/questions/7638932/what-is-locality-of-reference I think the meaning of temporal locality directly eliminates Option A, C and D. Because will always be to the page/one of the page/always page fault is never true with temporal Locality. Correct me If I am wrong. 3 3 replyShare sristicse commented Oct 22, 2020 reply Follow flag Not getting your point please explain a bit more! 1 1 replyShare samir757 commented May 30, 2021 reply Follow flag The reason the answer is B and not A. First of all, note that these concepts are not universal laws, they are observations about common forms of code behavior that allow CPU designers to optimize their system to perform better over most of the programs. Hence the term always cant be used. 1 1 replyShare Please log in or register to add a comment.
8 8 votes Answer: B Rajarshi Sarkar answered Jun 5, 2015 Rajarshi Sarkar comment Share Follow See all 10 Comments 10 10 Comments reply Show 7 previous comments ashishtomarx commented Apr 5, 2024 reply Follow flag Best explaination respect++ 1 1 replyShare Arnav Singh_01 commented Nov 20, 2024 reply Follow flag Best explanation ever ! 1 1 replyShare jacknroll commented Dec 3, 2025 reply Follow flag this should be best answer 1 1 replyShare Please log in or register to add a comment.
2 2 votes Locality of reference means that when a computer is working on something, it often sticks to using the same information or nearby information over and over again for a short period of time.Temporal locality: The computer is likely to use the same thing again soon.Spatial locality: The computer is likely to use things that are next to each other.This helps the computer be quicker because it doesn't have to search far for what it needs. ritiksri8 answered Aug 21, 2024 ritiksri8 comment Share Follow 0 reply Please log in or register to add a comment.