Awesome q2a theme
0 votes
22 views
A process takes 20 ns on a cache hit and 400 μs on a cache miss to read an instruction. Approximately 20% of the time read request is found in the cache. Then the average access time is ________ μs.
(Upto 3 decimal placces)
ago in CO & Architecture by (150 points) | 22 views
0
320.004?
0
Yes how

1 Answer

+2 votes
Best answer
Note:
We will not use conventional Hierarchical access formula here, as they have clearly given time required when cache miss occurs and time when hit occurs.

AMAT =cacheHitRate*(time when cache hit) + cacheMissRate*(TimewhenCacheMiss)

AMAT =0.2(20ns) +0.8(400$\mu sec$)= 320.004$\mu sec$
ago by (224 points)
selected ago by
+1

Good question - good answer. 

VERY important to note 

A process takes 20 ns on a cache hit and 400 μs on a cache miss to read an instruction

Does this mean that we should assume hierarchical or simultaneous organization ? NEITHER. Because it doesn't matter. Irrespective of which scheme, the question gives a specific number to use.

0

Thanks @shashin,@tp21

if nothing is mentioned about hierarchical or simultaneous access we should used direct method what given above answer (simultaneous)?

0

If nothing is given, going with hierarchical is the convention.

if nothing is mentioned about hierarchical or simultaneous access we should used direct method what given above answer 

Please be careful while thinking about this. This 'answer' does not give anything. Please don't pick up new concepts from solutions. Hierarchical or simultaneous are the only standard ways of accessing cache. Anything else is a problem-specific thing. Don't learn something from one numerical and try to apply it everywhere.

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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Jan 2020
  1. shashin

    1163 Points

  2. Vimal Patel

    306 Points

  3. Deepakk Poonia (Dee)

    305 Points

  4. Debapaul

    237 Points

  5. Satbir

    192 Points

  6. SuvasishDutta

    137 Points

  7. Pratyush Priyam Kuan

    118 Points

  8. tp21

    108 Points

  9. pranay562

    95 Points

  10. DukeThunders

    94 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
2,983 questions
1,509 answers
8,932 comments
89,814 users