Consider the following code that accesses three values in memory, scalar integers x and s, and an integer vector y[i]. What is the memory latency, in clock cycles, for a trip round the loop (after the first iteration)? Assume that the array is not cached and each new access to the array results in a miss.

The system has both L1 and L2 caches. The access time of the L1 cache is 2 cycles, the access time of the L2
cache is 6 cycles and main memory has an access time of 50 cycles. In this case all memory and cache memory
accesses take place in parallel.


for (i=0; i< 100; i++)
{
x = y[i];
s = s + x;
}


The first array load results in a miss and memory is accessed (40 cycles).
The second access to x results in a hit to L1 (2 cycles).
The third access to s results in a hit to L1 (2 cycles).
The total access time is 40 + 2 + 2 = 44 cycles.

Computer Science & Information Technology

You might also like to view...

A __________ conversion occurs when there is potential for data loss during the conversion.

a) widening b) implicit c) narrowing d) explicit

Computer Science & Information Technology

Here is an example of a hybrid organization. What can you to do improve it? Draw a sketch.


It’s worth analyzing for objects and actions (nouns and verbs). Here is a possible first analysis:
Objects Actions Individual accounts Open an Account New Customers Track a Package Small Business Center Schedule a Pickup e-Commerce Support Order Shipping Supplies

Actions often lend themselves to a task-oriented organization. Looking at the objects, it appears that there are new customers, individual customers, small business customers and e-Commerce customers. While the distinction between small businesses and e-Commerce businesses is definitely a bit on the fuzzy side, the best fit for this set of objects would be an audience-specific organization.
Since this is such a small number of links, you could put the tasks in one menu and the audiences in another. As long as these are physically separate on the page, it’s a good solution. Here are a couple possibilities:

Computer Science & Information Technology

When the resolution of a monitor is increased, the images appear larger.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

?The word shown in bold is spelled correctly in the following sentence.Brian pays city, state and federal income taxs.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology