1,957 views
0 votes
0 votes
In a two level memory hierarchy, the access time of cache memory is 12 ns and the access time of the main memory is 1500 ns. The hit ratio is 0.98, the average access time of two-level memory system is

(A) 44.05 ns
(B) 41.76 ns
(C) 46.94 ns
(D) 40.25 ns

2 Answers

1 votes
1 votes

In the case of simultaneous memory access organization, Average access time( Tavg) =H1T1+(1-H1)H2T2 ,in the case of two level memory organization H=1 (there will be 100% hit)

     so ,Tavg =.98 *12 +(1-.98)*1*1500  ns =41.76 ns

In the case of hierarchical memory access organizationn ,Average access time( Tavg) =H1T1+(1-H1)H2(T1+T2),in the case of two level memory organization H=1 (there will be 100% hit)

     so,    Tavg =.98 *12 +(1-.98)*1*(12+1500 ) ns =42 ns

so, multi-level memory organization can be either simultaneous memory access organization or hierarchical memory access organizationn,it depends on information given in the question but if not clear from question ifself then solve for both cases and then check the right answer from options(sometimes this strategy needed).

0 votes
0 votes

TAVG= hit ratio * cache access time +(1-hit ratio)*main memory accesstime
          =0.98*12+0.02*1500
          =11.76+30

         =41.76 nsec

Related questions

0 votes
0 votes
1 answer
1
rtiwari95 asked Jan 1, 2017
470 views
A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address sp...
1 votes
1 votes
1 answer
4
PRANAV M asked Jun 3, 2018
530 views
For $A, B ⊆ Σ^*$, define$A/B = \{x ∈ Σ^* | ∃y ∈ B, xy ∈ A\}$If $L$ is a $CFL$ and $R$ is regular, then $L/R$ isRegular$CFL$ but not regularRecursive but not $...