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?

  1. A. 0.85
  2. B. 0.95
  3. C. 0.80
  4. 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 का औसत एक्सेस समय देता है?

  1. A. 0.85
  2. B. 0.95
  3. C. 0.80
  4. D. 0.90

उत्तर: D. औसत = 5 + (1 − h) × 80 = 13, इसलिए (1 − h) × 80 = 8 और h = 0.90। मिस को केवल 80 ns मानने (समानांतर खोज) पर लगभग 0.89 आता, जो किसी अन्य विकल्प के बराबर नहीं है।

More Computer Awareness questions

Exams that ask this topic