Examlex
Suppose we have a dual core chip multiprocessor with two level cache hierarchy: Both the cores have their own private first level cache (L1) while they share their second level cache (L2). The first level cache on both the cores is 2-way set associative with cache line size of 2K bytes, and access latency of 30ns per word, while the shared cache is direct mapped with cache line size of 4K bytes and access latency of 80ns per word. Consider a process with two threads running on these cores as follows (assume the size of an integer to be 4 bytes which is same as the word size):
Thread 1:
int A[1024];
for (i=0; i < 1024; i++)
{
A[i] = A[i] + 1;
}
Thread 2:
int B[1024];
for (i=0; i< 1024; i++)
{
B[i] = B[i] + 1;
}
Initially assume that both the arrays A and B are in main memory, whose access latency is 200ns per word. Assume that an int is word sized. Furthermore, assume that A and B when mapped to L2 start at address 0 of a cache line. Assume a write back policy for both L1 and L2 caches.
(a) If the main memory blocks having arrays A and B map to different L2 cache lines, how much time would it take the process to complete its execution in the worst case? (Assuming this is the only process running on the machine.)
(b) If the main memory blocks having arrays A and B map to the same L2 cache line, how much time would it take the process to complete its execution in the worst case? (Assuming this is the only process running on the machine.)
In the worst case, thread 1 could access A[0], thread 2 could access B[0], then thread 1 could access A[1] followed by B[1] access by thread 2 and so on. Every time A[I] or B[i] is accessed, it evicts the other array from L2 cache and so a subsequent access to the other array has to again cause a main memory access.
Interest Revenue
Income earned from investments, loans, and other sources requiring the borrower to pay interest.
Bond Investments
Financial investments in debt securities issued by corporations or governments, which pay interest and are meant to be repaid at maturity.
Amortized
The gradual reduction of a debt over time by making regular payments that cover both principal and interest.
Held-To-Maturity
Held-to-maturity refers to investment securities that a company has the intent and ability to hold until a specified maturity date.
Q1: Which of the data types below could
Q3: How is the Rockwell hardness test performed?
Q7: In MIPS assembly, write an assembly language
Q7: Define an isometric sketch.
Q9: The five sources of power are:
Q14: Show the output of running the class
Q17: Name the ASME standards that recommend sheet
Q18: Draw a resonance form for each of
Q20: What does CAD stand for? Give another
Q35: Describe a detail drafter or detailer as