Question:
Spatial locality refers to the phenomenon that once a location is referenced,
स्पेशियल स्पेस उस समस्या को संदर्भित करता है, जो कि एक बार लोकेशन द्वारा रेफरेन्सड की गयी थी
Options:
- It will not be referenced again
- It will be referenced again
- A nearby location will be referenced soon
- None of these
- इसे फिर से संदर्भित नहींं किया जाएगा
- इसे फिर से संदर्भित किया जाएगा
- निकट का स्थान जल्द ही संदर्भित किया जाएगा
- इनमे से कोई नहींं
Correct Answer: c)
Explanation:
Detailed Explanation:
The correct answer is c) Nearby location will be referenced soon (निकट का स्थान जल्द ही संदर्भित किया जाएगा).
Locality of Reference Breakdown:
- Spatial Locality (Locality in Space): If a specific memory location is referenced at time $t$, locations with contiguous or physically proximate memory addresses are highly likely to be referenced in the near future ($t + \Delta t$). Examples include sequential instruction execution and linear array traversal.
- Temporal Locality (Locality in Time): If a memory location is referenced at time $t$, the exact same location will likely be referenced again soon. Examples include loops, loop counters, and frequently invoked subroutine parameters.
Therefore, spatial locality directly addresses the property that nearby locations will be accessed soon.
विस्तृत व्याख्या:
सही उत्तर c) निकट का स्थान जल्द ही संदर्भित किया जाएगा है।
स्थानिक स्थानीयता (Spatial Locality):
- स्थानिक स्थानीयता (Spatial Locality) का अर्थ है कि यदि किसी निश्चित मेमोरी लोकेशन को एक बार संदर्भित (reference) किया गया है, तो उसके निकटवर्ती (आस-पास के) स्थानों को भी जल्द ही संदर्भित किए जाने की अत्यधिक संभावना है।
उदाहरण: एरे (Array) के तत्वों को क्रम से पढ़ना या निर्देशों का क्रमिक निष्पादन। - इसके विपरीत, सामयिक स्थानीयता (Temporal Locality) यह बताती है कि उसी स्थान को निकट भविष्य में दोबारा संदर्भित किया जाएगा (जैसे लूप वैरिएबल)।