edited by
3,868 views
0 votes
0 votes

Cached and interleaved memories are ways of speeding up memory access between CPU’s and slower RAM. Which memory models are best suited (i.e. improves the performance most) for which programs ?

  1. Cached memory is best suited for small loops.
  2. Interleaved memory is best suited for small loops
  3. Interleaved memory is best suited for large sequential code.
  4. Cached memory is best suited for large sequential code.
    1. I and II are true
    2. I and III are true
    3. IV and II are true
    4. IV and III are true
edited by

2 Answers

Best answer
6 votes
6 votes

Answer is B) (i) and (iii) are true

Compared to the processor speed, the speed of the primary memory is slow. Cache memory is a small memory which sits in between the processor and primary memory and fetches information to the processor at a much higher speed or it makes it appear so. Caching can be effective based on a property of computer programs called locality of reference. Analysis of program show that the majority of the execution time is spent around a small part of the program may be a simple loop,nested loop or a few functions. The rest of the program is accessed infrequently. There is something called temporal locality and spatial locality also which we need to know when we talk about cache. But cache memory is ideally suited for small loops. 

Interleaved memory is a technique for increasing the speed of RAM. Here multiple memory chips are grouped together to form what are known as banks.Each of them take turns for supplying data. An interleaved memory with "n" banks is said to be n-way interleaved. Macintosh systems are considered to be one using memory interleaving.
So the answer for this question is option B.

selected by
0 votes
0 votes

Size of Secondary Memory > Size of Main Memory > Size of Cache.

So, Cache would be suitable for holding relatively smaller pieces of code, while Interleaved Memory (a special logical architecture of Main Memory) is able to hold relatively larger pieces of code.

I and III are correct.

Option B

Answer:

Related questions

2 votes
2 votes
1 answer
1
go_editor asked Jul 5, 2016
4,714 views
Pipelining strategy is called implementinstruction executioninstruction prefetchinstruction decodinginstruction manipulation
2 votes
2 votes
2 answers
2
go_editor asked Jul 5, 2016
1,533 views
Where does a computer add and compare data?Hard diskFloppy diskCPU chipMemory chip
2 votes
2 votes
1 answer
3
go_editor asked Jul 5, 2016
1,248 views
A complete micro computer system consists ofMicroprocessorMemoryPeripheral equipmentAll of the above
4 votes
4 votes
1 answer
4
go_editor asked Jul 5, 2016
5,026 views
Interrupts which are initiated by an instruction areInternalExternalHardwareSoftware