Computer AwarenessVery hardIBPS SO IT Officer
A cache takes 5 ns per access and main memory 80 ns. The cache is always checked first, and on a miss main memory is then read, so a miss costs 85 ns. What hit ratio gives an average access time of 13 ns?
- A. 0.85
- B. 0.95
- C. 0.80
- D. 0.90
Correct answer: D. 0.90
Average = 5 + (1 − h) × 80 = 13, so (1 − h) × 80 = 8 and h = 0.90. Treating a miss as only 80 ns (parallel lookup) would give about 0.89, not any other option.
हिंदी में
एक कैश प्रति एक्सेस 5 ns और मुख्य मेमोरी 80 ns लेती है। कैश की जाँच हमेशा पहले होती है और मिस होने पर मुख्य मेमोरी पढ़ी जाती है, इसलिए एक मिस की लागत 85 ns है। कौन-सा हिट अनुपात 13 ns का औसत एक्सेस समय देता है?
- A. 0.85
- B. 0.95
- C. 0.80
- D. 0.90
उत्तर: D. औसत = 5 + (1 − h) × 80 = 13, इसलिए (1 − h) × 80 = 8 और h = 0.90। मिस को केवल 80 ns मानने (समानांतर खोज) पर लगभग 0.89 आता, जो किसी अन्य विकल्प के बराबर नहीं है।
More Computer Awareness questions
- A direct-mapped cache has 128 lines. Main-memory block number 1000 is placed in which cache line (lines numbered from 0)?
- A 64 KB direct-mapped cache uses 16-byte blocks, and the processor issues 32-bit byte addresses. How is each address split?
- Which cache-mapping technique lets any memory block be placed in any cache line, at the cost of comparing its tag with every line at once?
- A loop counter is read and updated on every pass of a loop, and so it stays in the cache. Which property of programs does this exploit?
- When the CPU reads a word from main memory, which two registers hold the address being accessed and the data that arrives?
- A processor has a 16-bit data bus and moves one word on each bus cycle at 8 MHz. What is the maximum data transfer rate?