Examlex
Consider a multi-core processor with 64 cores where first shared cache is at level L3 (L1 and L2 are private to each core). Suppose an application needs to compute the sum of all the nodes in a perfectly balanced binary tree T (A tree where every node has either two or zero children and all the leaves are at the same depth/level). Assuming that an add operation takes 10 units of time, the total sum can be computed sequentially, in time 10*n units, ignoring the time to load and traverse links in the tree (assume they are factored in the add). Here n is the number of nodes in T. One way to compute the sum in a parallel manner is to have two arrays of length 64: (a) an input array having the roots of 64 leaf subtrees (b) an output array that holds the partial sums computed for the 64 leaf subtrees for each core. Both the arrays are indexed by the id (0 to 63) of the core that is responsible for that entry. Furthermore, assume the following:
The input arrays are already filled in with the roots of the leaf subtrees and are in the L1 caches of each core.
Core 0 is responsible for handling the internal nodes that are not a part of any of the 64 subtrees. It is also responsible for computing the final sum once the partial sums are filled in.
Every time a partial sum is filled in the output array by a core, another core can fill in its partial sum only after a minimum delay of 50 units (due to cache invalidations).
In order to achieve a speedup of greater than 2 (over sequential code), what is the minimum number of nodes that should be present in the tree?
Business Messages
Communication conveyed through various formats, such as emails, letters, reports, or memos, intended for business purposes.
Indirect Approach
A strategy that employs subtlety and nuance in communication or action, avoiding direct confrontation or assertion.
Negative Messages
Communications that convey unfavorable or disappointing information.
Help Readers
Strategies or elements designed to assist readers in understanding or navigating through text more easily.
Q4: Defense mechanisms are:<br>A) Military emplacements<br>B) Basketball configurations<br>C)
Q6: Briefly explain the difference between the box
Q7: Why don't more managers use Level Three
Q11: Define brainstorming.
Q13: Your genetic legacy can affect your natural
Q36: Which of the following pairs are related
Q38: Using E and Z nomenclature where necessary,
Q39: Name the process that uses vacuum pressure
Q52: What does the abbreviation CNC mean?
Q58: Which of the following statements about chloropropanes