Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem #1 (a) What are the characteristics of an ideal memory? (b) Explain the concept of locality of reference both with respect to instructions and
Problem #1
(a) What are the characteristics of an ideal memory?
(b) Explain the concept of locality of reference both with respect to instructions and data.
(c) The following code is written in C, where elements within the same row are stored
contiguously. Assume that both the arrays (A & B) are of same size. In the code identify variables which exhibit temporal locality and variables which exhibit spatial locality. Provide justification for your answer.
for (I=0; I < 3; I++)
for (J=0; J < 2; J++)
A[I][J] = B[J][0] + 5;
(d) State the importance of locality of reference in memory systems.
(e) Explain the concept of a memory hierarchy. Why it is represented as a pyramid?
(f) Compare and contrast in details the different memory technologies (SRAM and DRAM, flash
and Magnetic disk) used in a memory hierarchy.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started