Multiprocessors Formula Sheet: Speedup, Efficiency, Coherence and Revision Notes
Revise multiprocessor models with one compact sheet of formulas, decision rules, worked performance calculations, network counts and a write-back MESI trace.
KnowledgeGate Team
Exam prep & CS education

Use the formula or rule -> when to use -> exact check sequence for classification, scaling, efficiency, cost, overhead, interconnects and MESI. Reproduce 45 ms, speedup 20/9, efficiency 55.56%, cost 180 processor-ms, overhead 80 processor-ms, Amdahl limit 5, 16 processors and 12 switches. Start with the Multiprocessor Fundamentals: Architecture, Speedup and Worked Examples if you need concepts first.
Multiprocessor classification and notation: identify the model first
A multiprocessor has processing elements that can execute concurrently. Classify it before calculating.
Term | Defining test | When it matters |
|---|---|---|
SISD | One instruction and data stream | Sequential execution |
SIMD | One instruction, multiple data elements | Data parallelism |
MISD | Multiple instructions, one data stream | Specialised pipelines |
MIMD | Independent instruction streams | General multiprocessors |
Shared memory | Common address space | Loads and stores |
Distributed memory | Explicit messages | Communication cost |
UMA | Roughly uniform access latency | Symmetric access |
NUMA | Location-dependent access latency | Data placement |
Fixed-work notation: p is processor count; T_1 is the best declared one-processor time for the same work; T_p is elapsed time on p processors. f is the serial fraction, 1-f the parallel fraction, and T_ovh(p) the elapsed communication, synchronisation, scheduling and imbalance overhead. Do not confuse elapsed time with processor-time cost. Check the distinctions with Multiprocessor Classification: Flynn Taxonomy, Memory Models and Exam-Style Worked Examples.
Multiprocessor performance formula sheet: formula, meaning and use
Quantity | Formula | When to use | Sanity check |
|---|---|---|---|
Speedup |
| Fixed work, same baseline | Ideal is |
Efficiency |
| Processor use | Percentage is |
Cost |
| Total processor-time | Ideal is |
Aggregate overhead |
| Extra processor-time | Ideal is |
Elapsed time |
| Fixed-work split | Overhead uses elapsed time |
Ideal fixed-work scaling has S_p = p, E_p = 1, C_p = T_1 and O_p = 0. Without overhead, Amdahl gives S_p = 1/[f + (1-f)/p] and S_max = 1/f as p tends to infinity.
For a workload growing with processor count, Gustafson's law is S_G = p - alpha(p-1), where alpha is the parallel run's serial fraction. Do not substitute f without redefining the model. Karp-Flatt gives e = (1/S_p - 1/p)/(1 - 1/p) = (p/S_p - 1)/(p-1), combining serial work with measured overhead. Throughput is X = completed jobs/elapsed time, not one-job latency.
Fully worked fixed-work example: 100 ms on four processors
Declare T_1 = 100 ms, f = 0.20, 1-f = 0.80, p = 4, and observed communication plus synchronisation overhead T_ovh(4) = 5 ms.
The serial work is 0.20 x 100 = 20 ms. The parallel work is 0.80 x 100 = 80 ms, so its ideal four-way elapsed portion is 80/4 = 20 ms. Therefore:
T_4 = 20 + 20 + 5 = 45 ms
From the observed 45 ms:
S_4 = 100/45 = 20/9 = 2.222...E_4 = (20/9)/4 = 5/9 = 0.5556 = 55.56%C_4 = 4 x 45 = 180 processor-msO_4 = 180 - 100 = 80 processor-ms
Without the declared 5 ms overhead, Amdahl gives T_4 = 20 + 80/4 = 40 ms and S_4 = 100/40 = 2.5. Do not substitute that ideal result.
Using the unrounded observed speedup, the effective serial fraction is e = [4/(20/9) - 1]/3 = (1.8 - 1)/3 = 0.2667. It exceeds the original f = 0.20 because Karp-Flatt absorbs communication, synchronisation and imbalance alongside inherently serial work.

Scaling limits and interconnection counts: two quick numerical checks
Keep f = 0.20 and ignore overhead. The Amdahl limit is S_max = 1/0.20 = 5. For S = 4:
p = (1-f)/(1/S - f) = 0.80/(0.25 - 0.20) = 16
Check: T_16 = 20 + 80/16 = 25 ms, so S_16 = 100/25 = 4. Speedup 5 is the infinite-processor limit, not a finite result.
For scaled work, let p = 8 and alpha = 0.10. Gustafson gives S_G = 8 - 0.10(8-1) = 7.3. It does not contradict Amdahl's 5, because the workload differs.
Interconnect counts need a topology. An N-processor by M-memory full crossbar has NM crosspoints, so 8 x 8 = 64. A declared N = 2^k multistage network of 2 x 2 switches has k = log2 N stages, N/2 switches per stage and (N/2)log2 N total. At N = 8, that is 3 stages, 4 per stage and 12 switches. Do not generalise this count.
Communication, synchronisation and cache-coherence revision rules
Term | Exact distinction | Question cue |
|---|---|---|
Shared variables vs messages | Common addresses vs explicit messages | Model |
Atomic read-modify-write | Indivisible update | Lock primitive |
Critical section and lock | Region vs access mechanism | Exclusion |
Barrier | Wait at phase boundary | Synchronisation |
Coherence vs consistency | Writes to one location vs broader operation order | Guarantee |
Write-invalidate vs write-update | Remove copies vs update copies | Write trace |
Snooping vs directory | Broadcast vs recorded sharers | Organisation |
True vs false sharing | Same vs distinct variables on one line | Traffic cause |
Trace write-back MESI line X. Initially, memory has X = 0; P1 and P2 hold X = 0 in S. P1 writes X = 1, gains ownership and invalidates P2. P1 becomes M with X = 1, P2 becomes I, while memory remains stale at X = 0.
P2 reads X. Its miss makes P1 supply or flush X = 1. P1 moves M -> S, P2 moves I -> S, and memory plus both copies contain X = 1. For the full write-policy tables and seven-access MESI sequence, read Cache Coherence and Write Policies: Write-Through, Write-Back and MESI Worked Step by Step. A lock protects a critical section but cannot remove false sharing between independent variables on one line.

How multiprocessor questions are framed: recognise the operation before solving
Multiprocessor questions ask you to classify Flynn models, choose UMA or NUMA, calculate S_p, E_p, C_p or O_p, inferring f or Karp-Flatt e, comparing scaling laws, counting declared interconnect hardware, distinguishing coherence from consistency, and tracing cache states.
Try one closed-book diagnostic. A fixed-work run reports p = 4 and S_4 = 3. Then E_4 = 3/4 = 0.75 = 75%. Also:
e = (4/3 - 1)/(4-1) = (1/3)/3 = 1/9 = 0.1111
The measured e is an effective measured fraction, not automatically the source-level serial fraction. Practise classification, performance and coherence questions alongside these revision checks. The worked values here are examples, not previous-year questions.
Multiprocessor formula traps and a 12-minute revision drill
Trap | Why it tempts | What to do instead | Quick check |
|---|---|---|---|
| Symbol mix | Set | Parallel is |
Serial work divided by | Looks shareable | Divide parallel | Keep |
| Percent mix | Use | Find |
Overhead dropped | Ideal habit | Add | Recompute |
Gustafson for fixed work | Same output | Name workload | Fixed means Amdahl |
| Literal name | Treat as effective | Includes overhead |
One switch formula | Similarity | Declare topology | Check switch size |
Coherence as consistency | Memory overlap | Check scope | One location means coherence |
True as false sharing | Same traffic | Check variable identity | Separate can false-share |
Cache or memory effects can cause real S_p > p. Without one, it violates the ideal fixed-work model. Audit model, baseline and workload.
A 12-minute study drill: classification 2, formulas 4, 100 ms example 3, MESI 2, symbols and units 1. Check 2+4+3+2+1 = 12.
Multiprocessor formula checksum: verify each result before practice
Checksum: 45 ms, 20/9, 55.56%, 180 processor-ms, 80 processor-ms, e = 0.2667, Amdahl limit 5, processor count 16, Gustafson 7.3, crossbar 64, multistage 12, diagnostic efficiency 75%, and diagnostic e = 1/9. Revisit only the row you cannot reproduce.
Use Computer Architecture and Organisation for full COA teaching, GATE Guidance by Sanchit Sir for a wider preparation route, or
Keep learning
Pipelining Formula Sheet for GATE: Speedup, CPI and Hazard Revision Notes
Revise pipeline timing from first principles, then use one consistent five-stage example to calculate speedup, efficiency, CPI and throughput with and without stalls.
Multiprocessors in COA: Concepts, Amdahl's Law and Cache Coherence Worked Examples
Connect multiprocessor classifications, interconnects, memory models, speedup and cache coherence. Then solve the Amdahl and MESI patterns GATE questions rely on.
Instruction Formats and Addressing Modes Formula Sheet: COA Revision Notes with Worked Examples
Revise COA instruction formats with one compact sheet covering field widths, address-count sequences, effective-address formulas, expanding opcodes and memory-reference checks.
Floating Point Representation Formula Sheet: IEEE 754 Revision Notes
Revise IEEE 754 from one compact sheet, then apply it to exact binary32 encoding, decoding, ties-to-even rounding and floating-point arithmetic.





