Question:
The concept of cache memory is based on which of the following?
कैश मेमोरी की अवधारणा निम्न में से किस पर आधारित है?
Options:
- Property of locality of reference
- The fact that only a small portion of a program is referenced relatively frequently
- The fact that references usually cluster
- All options are correct
- लोकैलिटी ऑफ़ रिफरेन्स की संपत्ति
- तथ्य यह है कि किसी प्रोोग्रााम का केवल एक छोटा सा हिस्सा अपेक्षााकृत अक्सर संदर्भित होता है
- वह तथ्य जो कि संदर्भ करते है आमतौर पर क्लस्टर करते हैं
- सभी विकल्प सही हैं
Correct Answer: a)
Explanation:
Detailed Explanation:
The correct answer is a) Property of locality of reference (लोकैलिटी ऑफ़ रिफरेन्स की संपत्ति).
Principle of Locality of Reference: Cache memory is designed to bridge the significant speed disparity between the fast CPU registers and slower main memory (DRAM). Its success relies fundamentally on the Principle of Locality, which observes that programs do not access memory uniformly at random, but rather exhibit clustered access patterns:
- Temporal Locality (Locality in Time): If a specific memory location is referenced, it is likely to be referenced again in the near future (e.g., variables inside a loop, subroutines, stack pointers).
- Spatial Locality (Locality in Space): If a memory address is accessed, addresses physically near it are likely to be accessed soon (e.g., sequential instruction execution, traversing contiguous array elements).
While statements (b) and (c) describe empirical observations of program behavior, Locality of Reference is the foundational architectural property and scientific principle that justifies and governs cache memory hierarchies.
विस्तृत व्याख्या:
सही उत्तर a) लोकैलिटी ऑफ़ रिफरेन्स की संपत्ति है।
लोकैलिटी ऑफ रेफरेंस (Locality of Reference) का सिद्धांत: कैश मेमोरी सीपीयू और मुख्य मेमोरी के बीच की गति के अंतर को कम करने के लिए लगाई जाती है। कैश मेमोरी की पूरी कार्यप्रणाली ‘लोकैलिटी ऑफ रेफरेंस’ के सिद्धांत पर आधारित है:
- सामयिक स्थानीयता (Temporal Locality): यदि किसी मेमोरी लोकेशन को एक बार एक्सेस किया जाता है, तो निकट भविष्य में उसे दोबारा एक्सेस किए जाने की उच्च संभावना होती है (जैसे लूप वैरिएबल)।
- स्थानिक स्थानीयता (Spatial Locality): यदि किसी मेमोरी पते को एक्सेस किया जाता है, तो उसके आस-पास (निकटवर्ती) के मेमोरी पतों को जल्द ही एक्सेस किए जाने की संभावना होती है (जैसे एरे या क्रमिक निर्देश)।
अतः कैश मेमोरी की मूल अवधारणा लोकैलिटी ऑफ रेफरेंस के गुण पर ही टिकी है।