CIE AS & A Level Computer Science, section 15.1 (Processors, parallel processing and virtual machines)
Flynn's classification
Computers are grouped by the number of instruction streams and data streams they handle at once.
| Class | Meaning | How it works | Example |
|---|---|---|---|
| SISD | Single Instruction, Single Data | one processor runs one instruction on one piece of data at a time | an old single-core computer |
| SIMD | Single Instruction, Multiple Data | one instruction is applied to many data items at once by many processing units | a graphics processor changing every pixel of an image |
| MISD | Multiple Instruction, Single Data | several instructions work on the same data | rare, used in some fault-tolerant systems that compare results |
| MIMD | Multiple Instruction, Multiple Data | several processors each run different instructions on different data | a multi-core PC, or a supercomputer |
SIMD example
Adding two lists of numbers, item by item: an ordinary processor does the additions one after another, but a SIMD processor does them at the same time, with one instruction applied to many data items.
Massively parallel computers
A massively parallel computer links a very large number of processors (thousands or more), each with its own memory, working on different parts of a problem at once. Examples are supercomputers and weather forecasting.
- Benefits: very fast on problems that can be split into independent parts.
- Drawbacks: the program must be designed for parallel working, the processors must communicate, and some tasks cannot be split.
Parallel processing
Parallel processing is carrying out several tasks at the same time on more than one processor. It is much more effective for independent tasks than for steps that depend on each other.
Common mistake: thinking more processors always make a program faster. Part of the program may be sequential, and processors spend time communicating. Also, SIMD means one instruction on many data, not many instructions.
Exam tip: give the full name of each class and an example for it. For SIMD, mention that the same operation is applied to many items, such as image processing.
Check yourself
What does SIMD stand for?
Single Instruction, Multiple Data.
Which class describes a multi-core processor running different programs?
MIMD.
Give one drawback of a massively parallel computer.
Programs must be written for parallel working, and some problems cannot be split into independent parts.