Two cores share a counter initially equal to 100 and each increments it once. Assume coherent caches, individually indivisible loads and stores, and operations executed in each core's stated order. Each increment consists of a separate read, addition, and write; no overflow occurs. Which statements are justified? Select all that apply.
Coherent caches make each complete read-add-write sequence indivisible, preventing any lost increment.
Protecting each complete update with the same correctly used lock prevents a lost increment.
An increment can be lost despite coherent caches when the two update sequences overlap.
A barrier placed after the unprotected increments prevents either increment from being lost.
Unlock full course notes by signing up
Accounting for coordination costs
A simulation takes 240 s on one core: 30 s is serial work and 210 s is parallelizable work. On seven identical cores, the parallelizable work is divided evenly, the serial work remains unchanged, and additional communication and synchronization add 10 s of non-overlapping elapsed time. Calculate the seven-core elapsed time in seconds to one decimal place, speedup to two decimal places, and parallel efficiency as a percentage to one decimal place.
Measuring idle time from an uneven assignment
Four processor cores execute the independent jobs shown in the diagram. All cores start at time zero, and each runs its two assigned jobs consecutively without interruption. The durations shown are exact; ignore all scheduling, communication, and memory delays.
After its final job, each core remains idle until the entire batch finishes. Its idle time is the interval between its own finishing time and the batch finishing time.
Complete the table with each core's finishing time measured from time zero and its idle time before batch completion. Enter exact integers in milliseconds.
Recovering a performance model from measurements
A fixed image-processing job takes exactly 100 s on one core. Identical cores divide its parallelizable work evenly, while serial work remains unchanged. Additional non-overlapping overhead is h(N−1)h(N-1)h(N−1), where NNN is the core count and hhh is a constant measured in seconds. The exact elapsed times are 43 s on four cores and 37 s on eight cores.
Let AAA be the serial time within the one-core run. The model is
Finding a shared-bandwidth limit and its replacement
A multiprocessor has twelve identical cores. Each active core can sustain 8.00×1098.00\times10^98.00×109 FLOP/s. All cores share a memory interface providing an aggregate bandwidth of 80.0 GB/s. Use decimal units: 1 GB = 109 bytes.
A numerical kernel produces 1.20×1091.20\times10^91.20×109 independent outputs. Each output requires exactly 20 FLOP, reads three 8-byte input values from main memory, and writes one 8-byte output value to main memory. Count only these reads and writes; assume no data reuse or additional memory traffic.
Assume perfect load balance, no startup costs, and complete overlap between computation and memory transfers. The achieved processing rate is the smaller of the aggregate arithmetic capacity and the memory-supported rate.