Computer AwarenessModerateIBPS SO IT · SBI PO
A program reads the elements of a large array one after another: a[0], a[1], a[2] and so on. Which property does the cache exploit to speed this up?
- A. Spatial locality
- B. Temporal locality
- C. Thrashing
- D. Write-back
Correct answer: A. Spatial locality
Neighbouring addresses are used soon after one another, so loading a whole cache block at once helps: that is spatial locality. Temporal locality is reuse of the SAME address, such as a loop counter.
हिंदी में
एक प्रोग्राम किसी बड़े ऐरे के तत्वों को एक के बाद एक पढ़ता है: a[0], a[1], a[2] और इसी तरह। इसे तेज़ करने के लिए कैश किस गुण का लाभ उठाता है?
- A. स्थानिक स्थानीयता (स्पेशियल लोकैलिटी)
- B. कालिक स्थानीयता (टेम्पोरल लोकैलिटी)
- C. थ्रैशिंग
- D. राइट-बैक
उत्तर: A. पास-पास के पते एक-दूसरे के तुरंत बाद प्रयोग होते हैं, इसलिए पूरा कैश ब्लॉक एक साथ लोड करना सहायक होता है: यही स्पेशियल लोकैलिटी है। टेम्पोरल लोकैलिटी एक ही पते का पुनः प्रयोग है, जैसे लूप काउंटर।
More Computer Awareness questions
- Under a write-back cache policy, when is a modified cache block written to main memory?
- How many of these statements about the system bus are correct? I. The address bus carries addresses from the CPU to memory, so it is…
- Convert (563)₈ directly into hexadecimal.
- The decimal number 156 is stored once in pure binary and once in 8421 BCD. How many more bits does the BCD form need?
- What is the largest unsigned number that 12 bits can hold, written in octal?
- Which of these IPv4 addresses is a PRIVATE address that cannot be routed on the public internet?