Revision Notes
Cambridge A Level Computer Science (9618): Processors, Parallel Processing and Virtual Machines – Revision Notes
Condensed 9618 notes on RISC and CISC, pipeline timing, interrupts, RISC registers, SISD to MIMD, massively parallel computers and virtual machines.
- Subject
- Computer Science
- Level
- A LEVEL
- Topic
- Topic 15: Hardware and Virtual Machines
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to Cambridge A Level Computer Science (9618), 2026. Official specification .
Syllabus page (what it covers and how it is assessed): Cambridge A Level Computer Science.
Syllabus points this page covers
9618 (A Level)
- 15.1 Processors, Parallel Processing and Virtual Machines
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9618).
These notes condense section 15.1 “Processors, Parallel Processing and Virtual Machines” of Cambridge International AS & A Level Computer Science 9618: RISC and CISC (including interrupt handling), pipelining and registers in RISC, the four basic computer architectures, massively parallel computers, and virtual machines with their roles, benefits and limitations. It is assessed in Paper 3.
Related: Processors, parallel processing and virtual machines study guide · Processors, parallel processing and virtual machines practice questions · Topic 15 revision notes
Key terms
| Term | Meaning |
|---|---|
| Instruction set | All the machine-code instructions a processor can execute |
| RISC | Small set of simple, fixed-length instructions, mostly one clock cycle each |
| CISC | Large set of complex, variable-length instructions, often several cycles each |
| Load/store architecture | Only LOAD and STORE access memory; other instructions use registers |
| Hardwired control unit | Control signals produced directly by logic circuits (typical of RISC) |
| Microprogrammed control unit | Each instruction carried out as a sequence of micro-instructions (typical of CISC) |
| Pipelining | Overlapping the stages of consecutive instructions |
| Pipeline flush | Erasing instructions in the pipeline that should not be executed |
| Flynn’s classification | SISD, SIMD, MISD, MIMD, by number of instruction and data streams |
| Massively parallel computer | Very many processors, each with its own memory, working on one problem |
| Virtual machine | Software emulating a computer system |
| Host / guest | The physical machine and its OS / the OS running inside the virtual machine |
| Hypervisor | Software that creates and runs virtual machines, sharing the host’s hardware |
RISC against CISC
| Feature | RISC | CISC |
|---|---|---|
| Number of instructions | Few | Many |
| Instruction length | Fixed | Variable |
| Cycles per instruction | Mostly one | Often several |
| Addressing modes | Few | Many |
| Memory access | Only LOAD and STORE | Many instructions can access memory |
| Registers | Many general-purpose | Fewer |
| Control unit | Hardwired | Microprogrammed |
| Program length | Longer (more instructions) | Shorter |
| Pipelining | Efficient | Harder, as stages are unequal |
Registers in RISC, in one chain: operands must be in registers → so many registers are needed → so memory is accessed less → so each instruction stays at one cycle and the pipeline does not stall.
Pipelining facts
- Five-stage model: IF (fetch), ID (decode), OF (operand fetch), IE (execute), WB (write back).
- No hazards: time = stages + (instructions − 1).
- Without pipelining: time = stages × instructions.
- Each taken branch resolved at IE flushes the instructions behind it (3 in the five-stage model).
- Pipelining raises throughput; it does not make one instruction faster.
Quick figures (five stages): 10 instructions → 14 cycles against 50; 50 instructions → 54 cycles against 250.
Interrupt handling
- Without a pipeline (typical CISC): interrupt checked at the end of each fetch-execute cycle; a long multi-cycle instruction must finish first, so the response can be delayed. Then save registers → run the interrupt service routine → restore registers.
- With a pipeline (RISC): several part-finished instructions are in the pipeline when the interrupt arrives. Either flush the most recent instructions, finish the oldest, handle the interrupt and refetch the flushed ones later; or store the state of every stage (each with its own program counter value) and resume them after the interrupt.
Flynn’s four architectures
| Type | Streams | Example |
|---|---|---|
| SISD | 1 instruction, 1 data | Single-core processor |
| SIMD | 1 instruction, many data | Applying one filter to every pixel; vector or array processing |
| MISD | Many instructions, 1 data | Rare; cross-checking one data stream in fault-tolerant systems |
| MIMD | Many instructions, many data | Multi-core processors, clusters, massively parallel computers |
Decision test: same operation on many items → SIMD. Different tasks at once on different data → MIMD.
Massively parallel computers: four characteristics
- A very large number of processors.
- Each processor has its own memory.
- Processors connected by a fast network and communicate by passing messages.
- Needs specially written software that divides one problem into parts solved at the same time.
Limits: parts of the task that must run in sequence; time spent communicating and combining results.
Virtual machines
Roles
- Run a guest OS on a host OS.
- Keep legacy software running.
- Test software on several OSs on one computer.
- Isolate untrusted software or malware.
- Divide one physical server into several virtual servers.
- Run intermediate code (for example Java bytecode) on any platform.
| Benefits | Limitations |
|---|---|
| Many OSs on one machine; less hardware | Slower than running on the hardware directly |
| Isolation protects the host | Shares host resources, so performance falls with more VMs |
| Easy to back up, copy, restore | Some hardware features unavailable to the guest |
| Old software survives hardware change | Set-up and management take skill |
Exam traps
- “RISC is slower because it has fewer instructions”: wrong reasoning.
- “Pipelining makes each instruction faster”: it raises throughput only.
- Multi-core processor labelled SIMD: it is MIMD.
- Virtual machine confused with virtual memory.
- Pipeline time written as stages × instructions for a pipelined processor.
- Interrupt answers that ignore the instructions already in the pipeline.
Self-test
- Give three features of a RISC instruction set.
- Why does a RISC processor have many general-purpose registers?
- A five-stage pipeline runs 12 instructions with no hazards. How many cycles?
- The same processor, without pipelining, runs those 12 instructions. How many cycles?
- In the five-stage model, how many instructions are flushed by a taken branch resolved at IE?
- Why might a CISC processor take longer to respond to an interrupt?
- Give one way a pipelined processor can deal with an interrupt.
- Classify: one instruction adds 5 to every element of an array at once.
- Classify: a quad-core laptop runs a browser, a music player and a virus scan.
- State two characteristics of a massively parallel computer.
- Give two roles of a virtual machine.
- Give one limitation of a virtual machine.
Answers
- Any three: few instructions; fixed length; mostly one clock cycle; few addressing modes; only LOAD/STORE access memory; hardwired control unit.
- Operands must be in registers, so many are needed to hold values without repeated slow memory accesses, keeping instructions to one cycle.
- 5 + 11 = 16 cycles.
- 12 × 5 = 60 cycles.
- Three (those in OF, ID and IF).
- The interrupt is usually serviced only when the current instruction has finished, and a CISC instruction may take many cycles.
- Flush the most recent instructions and refetch them after the interrupt, or save the state of every stage and resume after the interrupt.
- SIMD.
- MIMD.
- Any two: very many processors; each with its own memory; linked by a fast network passing messages; specially written parallel software; work on parts of one problem at once.
- Any two: run a guest OS; run legacy software; test on several OSs; isolate malware; split a server; run bytecode.
- Any one: slower than direct execution; shares host resources; not all hardware features available; needs skill to manage.
Related resources
-
Practice questions
Cambridge A Level Computer Science (9618): Hardware and Virtual Machines – Practice Questions
Paper 3-style questions with answers on RISC and CISC, pipelines, SIMD, virtual machines, adders, flip-flops, Boolean algebra and K-maps for Cambridge 9618.
Computer Science · Cambridge · A Level
Try questions -
Revision notes
Cambridge A Level Computer Science (9618): Hardware and Virtual Machines – Revision Notes
Revision notes on RISC and CISC, pipelining, Flynn architectures, virtual machines, adders, flip-flops, De Morgan and Karnaugh maps for Cambridge 9618.
Computer Science · Cambridge · A Level
Revise topic -
Study guides
Cambridge A Level Computer Science (9618): Hardware and Virtual Machines – Study Guide
Cambridge A Level Computer Science 9618 Topic 15 guide: RISC and CISC, pipelining, parallel processing, virtual machines, Karnaugh maps, adders, flip-flops.
Computer Science · Cambridge · A Level
Read guide
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.