Usually small, cheap, low power and reliable. Its program is stored permanently, often in ROM.
A general-purpose computer, such as a PC or laptop, runs many different programs.
Quick check
?Which of these is not an embedded system?
Mission check
?ENIAC took days to reprogram. Why can your phone swap apps instantly?
ENIAC's program was set by its wiring, so a new job meant rewiring. In your phone, programs are stored in memory as instructions, just like data. The CPU fetches, decodes and executes whatever instructions are there, so switching apps just means running different instructions.
Mission 2
Double the cores. Why isn't the computer twice as fast?
Make a guess: Double the cores. Why isn't the computer twice as fast?
Hardware · CPU performance
Clock speed
The clock sends out regular electrical pulses that keep the CPU's parts in step.
Clock speed is the number of clock cycles per second, measured in hertz (Hz).
1 GHz = 1,000,000,000 cycles per second, so 3.5 GHz is 3.5 billion.
Higher clock speed: more fetch–decode–execute cycles each second, so more instructions are processed.
Calculate
?A CPU has a clock speed of 2.8 GHz. How many clock cycles does it complete each second?
cycles per second
Hardware · CPU performance
Cores
A core is a complete processing unit. Each core can fetch, decode and execute instructions on its own.
A dual-core CPU can process two instructions at the same time; a quad-core CPU, four.
Doubling the cores rarely doubles the speed: some tasks cannot be split, and one core may wait for another's result.
Software must be written to use several cores.
Hardware · CPU performance
Cache
Cache is a small amount of very fast memory on or very near the CPU.
It holds frequently used instructions and data, saving slower trips to RAM.
A larger cache holds more, so the CPU waits less. But cache is expensive, so it stays small.
Quick check
?Sam's CPU often waits for data from RAM. The same small set of instructions is used again and again. Which upgrade is most likely to help?
Quick check
?A game only ever uses one core. Which CPU will run it fastest, if everything else is the same?
Mission check
?Double the cores. Why isn't the computer twice as fast?
Each core can run instructions at the same time as the others, but only if the work can be split between them. Tasks that can't be split, or where one core must wait for another's result, gain little, so doubling the cores rarely doubles the speed.
Mission 3
Pull the plug and unsaved work is gone. So how does it boot?
Make a guess: Pull the plug and unsaved work is gone. So how does it boot?
Hardware · primary memory
Primary storage
Primary storage (main memory) is memory the CPU can access directly.
It holds the instructions and data the CPU is using now. Secondary storage is too slow for the CPU to work from directly.
Main memory is made up of RAM and ROM.
Registers and cache are also memory the CPU uses directly, but they are not counted as main memory.
Hardware · primary memory
RAM
RAM (random access memory) holds the operating system, the programs that are open and the data they are using.
The CPU can read and write RAM, so its contents change all the time.
RAM is volatile: its contents are lost when the power is switched off. That is why unsaved work disappears.
More RAM lets more programs and data be open at once without slowing down.
Hardware · primary memory
ROM
ROM (read-only memory) is non-volatile: it keeps its contents with the power off.
It can only be read. Its contents cannot normally be changed.
ROM holds the start-up instructions (the BIOS or boot program). They load the operating system from secondary storage into RAM.
RAM
ROM
Keeps data with power off?
No (volatile)
Yes (non-volatile)
Can be changed?
Read and write
Read only
Holds
Operating system, open programs and data in use
Start-up instructions
Size
Gigabytes
Small
Quick check
?A washing machine's wash programs must never be lost and must not be changed by the user. Where should they be stored?
Hardware · primary memory
Registers and cache
Registers are tiny memory locations inside the CPU holding the instruction, data or address in use right now.
Cache is small, very fast memory on or near the CPU. It holds copies of frequently used instructions and data, so fewer slow trips to RAM are needed.
Both are volatile. The faster the memory, the more it costs per byte, so fast memory is kept small.
Your answer
?What word describes memory that loses its contents when the power is switched off?
Mission check
?Pull the plug and unsaved work is gone. So how does it boot?
Your essay was in RAM, which is volatile, so it vanished. The start-up instructions are in ROM, which is non-volatile, so they are still there. They load the operating system from secondary storage into RAM, and the computer is ready again.
Mission 4
One storage firm runs 300,000+ spinning hard disks. Why not SSDs?
Make a guess: One storage firm runs 300,000+ spinning hard disks. Why not SSDs?
Hardware · secondary storage
Why secondary storage?
Secondary storage is non-volatile: it keeps the operating system, programs and files with the power off.
It holds far more than RAM, for much less money per gigabyte.
The CPU does not access it directly. Programs and data are copied into RAM (main memory) first.
To choose a device, compare its capacity, speed, portability, durability, reliability and cost.
Hardware · secondary storage
Magnetic storage
A hard disk drive (HDD) stores data on spinning magnetic platters.
Platters are divided into circular tracks, split into sectors.
A moving read/write head uses an electromagnet to magnetise tiny areas (one way for 1, the other for 0) and to read them.
Moving parts: slower, and easily damaged if dropped. But huge and cheap per gigabyte.
Hardware · secondary storage
Solid-state storage
Solid-state storage uses flash memory: electrical circuits that keep data with the power off. No moving parts.
Examples: SSD (solid-state drive), SD card, USB flash drive.
Fast, light, low power and robust. But it costs more per gigabyte, and cells wear out after many rewrites.
Calculate
?A 4,000 GB hard disk costs £80. A 2,000 GB SSD costs £120. How many times more does the SSD cost per gigabyte?
Hardware · secondary storage
Cloud storage
Cloud storage keeps your files on servers at a remote location, reached over the internet. The servers use magnetic and/or solid-state storage.
Advantages: access from any device, anywhere; easy sharing; the provider handles backups and maintenance; buy more space when needed.
Disadvantages: no internet, no access; slow connections mean slow transfers; ongoing fees; you rely on the provider to keep data secure and private.
Quick check
?A school is choosing between cloud storage and its own local file server. Which is a disadvantage of the cloud?
Quick check
?A travel photographer copies 60 GB of photos a day to a small device kept loose in a rucksack. Which is the best choice?
Mission check
?One storage firm runs 300,000+ spinning hard disks. Why not SSDs?
When you store vast amounts of data, cost per gigabyte matters most. Hard disks give far more capacity for the money. SSDs are faster and tougher, so they are used where speed matters, such as in laptops.
Recap
Big ideas
Instructions and data are both stored in main memory; the CPU fetches, decodes and executes them, one after another, kept in step by the clock.
An embedded system is a computer inside a larger device that does one dedicated job.
Higher clock speed means more cycles, and so more instructions, every second.
More cores help only when the work can be split; a larger cache means fewer slow trips to RAM.
RAM is volatile and holds what is in use now; ROM is non-volatile and holds the start-up instructions.
Registers and cache are small, fast, volatile memory close to the CPU.
Secondary storage is non-volatile and keeps data for the long term; choose it by capacity, speed, portability, durability, reliability and cost.
Magnetic: huge and cheap per gigabyte, but moving parts. Solid state: fast and robust, but dearer per gigabyte.
Cloud storage is on remote servers: access anywhere, but only with an internet connection.
🏆
Mini-lesson complete!
⭐⭐⭐
You've worked through Systems architecture for AQA GCSE Computer Science (8525). 🎉
Mission 1ENIAC took days to reprogram. Your phone swaps apps instantly. Why?
Mission 2Double the cores. Why isn't the computer twice as fast?
Mission 3Pull the plug and unsaved work is gone. So how does it boot?
Mission 4One storage firm runs 300,000+ spinning hard disks. Why not SSDs?