Computer Organisation and Architecture · UGC NET: Multiprocessors
Characteristics and Interconnection Structures
Overview
This topic explains how multiple processors are coupled together and how they communicate with memory and with each other.
A multiprocessor is more than “many CPUs”: the coupling style decides whether memory is shared or local, whether one operating system controls the machine, and how data moves.
The interconnection structure decides cost, delay, bandwidth and whether simultaneous transfers are possible.
You need basic ideas of binary addresses, memory modules, logic gates, speedup and efficiency before studying this topic.
In UGC NET, the questions are usually definition-based, statement-based, match-the-list, or direct numerical calculations on crossbar, multistage, hypercube and grid networks.
Key concepts
- Multiprocessor system: a parallel computer with multiple processors working on one job under common control.
In the strict UGC NET/COA convention, a multiprocessor is tightly coupled, shares a common memory, and is controlled by one operating system. - Tightly coupled multiprocessor: processors share a global memory at the same level; communication is through shared memory; one OS manages the whole system.
It is an MIMD system: multiple instruction streams on multiple data streams. - Loosely coupled multiprocessor: each processor has its own local memory; nodes communicate by message passing over a network; there is no single global memory.
It is often called a multicomputer or distributed-memory system, and nodes may run separate OS instances. - UMA — Uniform Memory Access: every processor accesses every memory module in the same amount of time. Typical of tightly coupled shared-memory machines.
- NUMA — Non-Uniform Memory Access: all processors share an address space, but access time depends on location; local memory is faster than remote memory.
- NORMA — No Remote Memory Access: each node accesses only its local memory; remote data must be fetched by message passing.
- Interconnection network: the hardware that connects processors to memory modules or to other processors. Key properties are latency, bandwidth, blocking/non-blocking behaviour, cost and fault tolerance.
- Bandwidth: data-transfer capacity per unit time. For a bus, it is roughly bus width × transfer rate; for a switch, it is the number of simultaneous transfers supported × transfer rate per path.
- Time-shared common bus: one shared path. Only one transfer can occur at a time, so it is simple and cheap but a bottleneck. Arbitration decides which processor gets the bus.
- Crossbar switch: a grid of switches connecting processors to memory modules with crosspoints.
It provides a dedicated path between each processor and each memory module and is non-blocking for distinct processor-memory pairs. If two processors request the same memory module, conflict remains. - Multiport memory organisation: each memory module has multiple ports. Different modules can be accessed simultaneously by different processors.
Simultaneous requests to the same module are resolved by hardware priority or arbitration. - Multistage interconnection network (MIN): several stages of small switches, commonly switches. An omega network with inputs and outputs has stages and switches per stage.
It uses fewer switches than a crossbar but is generally blocking. - Single-stage network: an interconnection network with one stage of switching elements; data may have to recirculate through the same stage more than once.
It is also called a recirculating network. Do not confuse it with a pipeline network. - Hypercube: a direct network with nodes, each labelled by an -bit binary address. Each node has exactly neighbours; diameter is ; shortest path length is the Hamming distance between addresses.
Dimension-order routing flips differing bits in a fixed order. - Grid/mesh: processors placed at grid nodes; message delay in hops is the Manhattan distance. For an grid, the worst case is hops.
- Universal building block in logic design: NAND and NOR are universal gates because each can implement NOT, AND, OR and every Boolean function. This is a digital-logic term, not an interconnection-network classification.
How it works
- Decide the coupling: shared global memory with one OS means tightly coupled; local memories with message passing means loosely coupled.
- Identify the memory model: UMA gives equal access time to all modules; NUMA gives local-fast/remote-slow access; NORMA has no remote memory access.
- Select the interconnection structure. A bus is cheap but serial; a crossbar gives many parallel paths but costs ; a multistage network reduces cost but may block; a hypercube or grid is used in direct networks.
- Add arbitration. A shared bus needs bus arbitration. Multiport memory needs per-module priority or arbitration when requests collide. A crossbar needs memory-module arbitration only when requests target the same module.
- Compute cost and delay. For crossbar, count crosspoints; for omega, count switches per stage and stages; for hypercube, count differing address bits; for grid, count horizontal plus vertical edges.
- Route in direct networks. In a hypercube, compare source and destination bit patterns; each differing bit is one hop. In e-cube routing, flip the differing bits in a fixed dimension order.
Crossbar operation:
- Processor raises a request for memory module .
- The crosspoint closes if the module is free.
- If the module is already busy, arbitration or waiting is required.
- Distinct pairs and with can transfer simultaneously.
Multistage omega operation:
- Data enters stage 1 and is switched by a switch.
- It passes through stages according to destination bits.
- Two connections may need the same internal link, causing blocking even if destinations differ.
- The path is fixed by the network topology, not by a full crossbar.
Hypercube routing:
- Write source and destination as -bit addresses.
- Compare bit by bit; each differing position is a dimension to flip.
- Flip one differing bit per hop in a fixed order.
- The minimum number of hops is the Hamming distance.
Drawing the diagram…
Formulas
- Crossbar crosspoints for processors and memory modules: Here = number of processors, = number of memory modules. For an crossbar, .
- Omega network with inputs and outputs using switches:
- Hypercube with nodes:
- Grid of rows and columns:
- Speedup with processors: where = time on one processor, = time on processors.
- Efficiency: Ideal bounds: and . If a source writes speedup as , use .
- Amdahl’s law, with parallel fraction and processors: Here = parallelizable fraction, = serial fraction. If a question calls the parallel fraction , substitute .
Worked examples
Example 1: A crossbar connects 6 processors to 4 memory modules. How many crosspoints are needed? Each processor-memory pair needs one crosspoint. Answer: 24 crosspoints.
Example 2: An omega network connects 16 inputs to 16 outputs using switches. How many switches are required? Compare with a full crossbar. A crossbar needs crosspoints. Answer: 32 switches, much fewer than 256, but the omega network can block.
Example 3: In a hypercube with 64 nodes, how many neighbours does each node have? Also find the minimum hops from 0110 to 1011. So each node has 6 neighbours. Now compare addresses: There are three 1-bits, so the Hamming distance is 3. One valid route is: Answer: 6 neighbours; 3 hops.
Example 4: A multicomputer with 256 CPUs is arranged as a grid. What is the worst-case message delay in hops? Answer: 30 hops.
Example 5: Statement I: A crossbar switch is non-blocking for distinct processor-memory pairs. Statement II: In a time-shared common bus, two transfers can occur at the same time.
Statement I is true: distinct pairs can use different crosspoints. Statement II is false: a common bus allows only one transfer at a time. Answer: I true, II false.
Comparison
| Feature | Tightly coupled multiprocessor | Loosely coupled multiprocessor |
|---|---|---|
| Memory | Common shared memory | Local memory per processor or node |
| Communication | Shared memory | Message passing over network |
| Operating system | Usually one OS | May have separate OS per node |
| Coupling | Tight | Loose |
| Example model | UMA/NUMA shared-memory multiprocessor | Multicomputer, distributed system |
| Structure | Cost | Concurrency | Blocking behaviour |
|---|---|---|---|
| Time-shared common bus | Low | Only one transfer at a time | Serial, bottleneck |
| Crossbar switch | crosspoints | Many distinct pairs in parallel | Non-blocking for distinct pairs; same module conflicts |
| Multiport memory | Multiple ports per module | Different modules simultaneously | Same module needs arbitration |
| Multistage omega | switches | Multiple paths but shared links | Generally blocking |
| Hypercube | links for | Many paths; degree | Direct network; routing by bit flips |
| Single-stage/recirculating | One stage | Limited; may need repeated passes | Recirculating, not pipeline |
| Memory model | Access time | Memory location | Typical use |
|---|---|---|---|
| UMA | Same for all processors and modules | Shared global memory | Tightly coupled shared-memory multiprocessor |
| NUMA | Depends on processor and module | Shared address space with local/remote memory | Scalable shared-memory multiprocessor |
| NORMA | Local only; remote via messages | Private local memory | Multicomputer, loosely coupled system |
Revision summary
- Strict multiprocessor = tightly coupled, shared memory, one OS, MIMD.
- Loosely coupled = local memories, message passing, often separate OS; multicomputer.
- Time-shared bus: one transfer at a time; arbitration needed.
- Crossbar : crosspoints; non-blocking for distinct pairs.
- Multiport memory: different modules can work simultaneously; same module needs priority/arbitration.
- Omega: switches; blocking; crossbar is .
- Single-stage network = recirculating network, not pipeline.
- Hypercube : neighbours, diameter , hops = Hamming distance, links .
- Grid : worst hops = .
- UMA same access time; NUMA remote access slower than local.
- Speedup ; efficiency ; Amdahl .
- NAND and NOR are universal gates; NOR is a universal building block in logic design.
Previous-year exam insights
- Direct definition questions ask whether a multiprocessor has one OS, shared memory and MIMD classification; check the strict tightly coupled convention.
- Numerical questions ask crosspoints for crossbar, total switches in omega, neighbours and hops in hypercube, and worst-case hops in a grid.
- Statement I/II questions test bus serialisation, crossbar non-blocking behaviour, multiport memory arbitration, UMA versus NUMA, and loosely coupled properties.
- Match-the-list questions pair a structure with its property: bus with bottleneck, crossbar with crosspoints, omega with multistage, hypercube with bit-flip routing.
- Assertion-reason questions often use multiport memory: different modules can be accessed simultaneously, but same-module requests need arbitration.
- Trap: a crossbar is non-blocking for distinct pairs, not for two processors targeting the same memory module.
- Trap: omega is blocking and cheaper than crossbar; do not call it non-blocking.
- Trap: hypercube hops use Hamming distance, not decimal difference; single-stage network means recirculating network, not pipeline.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Distinguish tightly coupled and loosely coupled multiprocessors from memory, OS and communication behaviour.
- Compute crossbar crosspoints for any given number of processors and memory modules.
- Compute omega network stages, switches per stage and total switches, and compare with a crossbar.
- Find hypercube degree, diameter and minimum hops between two binary addresses.
- Route a message in a hypercube by flipping differing bits in a fixed order.
- Compute worst-case hops in a rectangular grid network.
- Explain blocking versus non-blocking for bus, crossbar, multiport memory and omega networks.
- Explain how simultaneous requests to the same memory module are resolved in multiport memory.
- Use speedup, efficiency and Amdahl’s law with correct bounds.
- Match interconnection structures to their cost, concurrency and typical property.
Attempt the sub-topic test first, then the subject test.