The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
88 views

How this is 20000? the array is in RMO and we are accessing like CMO then for each entry there should be PF. 

asked in CO & Architecture by Boss (18.3k points) | 88 views

1 Answer

0 votes

kulkarani....i think 20k is corect..

array would be stored in asingle page  like this....

0,0.....0,199

1,0 ....1,199.....loop accessing  array like this....

00F

10H

20F

30H...and so on....means at every access of array there would be one F and one hit.....

and here total 200*200 access and half of the access would be Hit...

so total access 40000/2=20k

answered by Loyal (8.1k points)
0
@hs_yadav,

(0,0) will be miss and then (1,0) will be hit, why?
0

page sige is 400....

and in RMO...00,01,02.......0,199(total 200)

again 10,11,12,..................1,199(total 200)  these would remain in a single page....and at the time PF we pickup the page not the single word...:)

+1
who told you that 400 array entries are to be taken in one page.

it is given in qsn that page size is 400, generally if not given memory is byte addressable.

now page size=400 Bytes, and size of int=4 bytes

therefore one page will contain 100 array entries only
0
@hs_yadav

jai mahakaal /\
0

joshi...

here in question given that page size is 400 ...then how  u conclude that this is 400 byte ...

it may be 400 entries....

i consider it as 400 entries....:)

and in the question in next line it is given that....page 0 (location from ( 0-399) from these points i think one page could hold 400  entries....:)..

0

joshi_nitish

jai bhawani...   (:)

0
:) :)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
48,515 questions
52,763 answers
183,377 comments
68,234 users