Computer Science, asked by shivamsakore3901, 4 months ago

If memory access takes 20 ns with cache and 110 ns without it, then the ratio ( cache uses a 10 ns memory) is

Answers

Answered by Yamini2110
0

the ratio (cache uses a 10 ns memory) is 0.9

Answered by mad210215
0

Cache memory :

Explanation:

  • Cache memory is a hardware or software component that stores data so that future requests for data can be served faster.
  • This data stored in a cache may be the result of an earlier computation or a copy of data stored elsewhere.

The cache memory is calculated by a formula

C = Hit% × ( cache time ) + ( 1 - h ) × ( cache + main memory )

In this problem,

cache time= 10ns

memory access time with cache =20ns

main memory time=110ns

Put this in above equation

20 = h (10) + (1-h) (110)

Solving above equation we get

h = 0.9

Then the required ratio is calculated by

0.9 × 100 = 90%

The required ratio is 90%.

Similar questions