A busy kitchen
Picture a busy kitchen. A cook makes the food. The cook works at a table. The food waits in a cupboard.
A computer works the same way. The CPU is the cook. The memory is the table. The storage is the cupboard. This lesson looks at each one.
Key words
| Word | What it means | Example |
|---|---|---|
| CPU | The processor, which runs a program's instructions. | The cook |
| Core | One working part inside a processor. | Four cores |
| Clock speed | How many steps a processor makes each second, in GHz. 1 GHz is 1 billion steps a second. | 3 GHz |
| Cache | A very small, very fast memory inside or next to the processor. | The chopping board |
| RAM | Main memory for the programs and data in use now. Power off erases it. | The table |
| ROM | Read-only memory that keeps start-up instructions with no power. | The recipe on the wall |
| Secondary storage | Storage that keeps files for a long time, even with no power. | The cupboard |
| MB and GB | Megabyte and gigabyte, sizes of data. 1 GB is 1000 MB. | A song is 4 MB |
| Firmware | Small programs on a chip that start a device. | The start-up program |
The cells students fill in are left blank in this preview.
Match the kitchen to the computer
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
The processor: three numbers
Three numbers describe a processor.
The number of cores: each core can work on its own job. Two cores can do two jobs at once.
The clock speed: how fast each core works. A bigger number is faster, but only when the other numbers are the same.
The cache size: more cache means the processor waits less for data.
Compare two processors
| Processor A | Processor B | |
|---|---|---|
| Cores | 2 | 8 |
| Clock speed | 3.5 GHz | 3.0 GHz |
| Cache | 4 MB | 16 MB |
| Good for | One program that needs speed | Many programs at once, such as video editing |
The cells students fill in are left blank in this preview.
Quick check: the processor
Have a go
Quick check: the processor
3 questionsMobile processors save power
A phone cannot have a big fan or a big battery. So a mobile processor is built to use little power and make little heat.
This saves space and battery.
RAM and ROM
| RAM | ROM | |
|---|---|---|
| What it holds | Programs and data in use now | Firmware: the start-up instructions |
| Power off | Everything is lost | Everything is kept |
| Can you change it? | Yes, all the time | No, or only with special steps |
| Size in a laptop | Large, for example 16 GB | Very small |
The cells students fill in are left blank in this preview.
Secondary storage: three kinds
RAM is erased when you switch off. Your photos and homework must stay. So a computer also has secondary storage.
Magnetic storage is a hard disk. A spinning disk holds the data. It is cheap but slow and it can break if dropped.
Solid state storage (an SSD) has no moving parts. It is fast and quiet. It costs more for each gigabyte.
Optical storage is a CD or a DVD. A laser reads the disc. It is cheap and easy to post, but it is slow and small.
Which storage is it?
Have a go
Which storage is it?
5 questionsExtra: A system on a chip
Note
Many mobile processors put the processor, the graphics and other parts on one small chip. This is called a system on a chip. It saves space and battery.
Worked example: how many songs fit?
| Step | What to do | Result |
|---|---|---|
| 1 | A song is 4 MB. The phone has 64 GB. | |
| 2 | Change GB to MB: 64 times 1000 (64 x 1000) | 64000 MB |
| 3 | Divide by the size of one song: 64000 divided by 4 (64000 / 4) | 16000 songs |
| 4 | Check: 16000 songs times 4 MB (16000 x 4) | 64000 MB. It matches. |
The cells students fill in are left blank in this preview.
Try it: how many songs fit?
# A song is 4 MB. A phone has 64 GB. 1 GB is 1000 MB.
song_size = 4
storage_in_mb = 64 * 1000
songs = storage_in_mb // song_size
print("The phone holds", songs, "songs.")
# // means divide and keep the whole number.
# Change 64 to 128 and run it again.
Make a free account to save your work and track your progress.
From fastest memory to slowest
Have a go
From fastest memory to slowest
3 questionsYour turn: how much space?
Write two functions. songs_that_fit(storage_gb, song_mb) gives back how many whole songs fit in the storage. Remember: 1 GB is 1000 MB. space_left_mb(storage_gb, used_mb) gives back how many MB are still free. Press Run Tests to check.
def songs_that_fit(storage_gb, song_mb):
# 1 GB is 1000 MB. How many whole songs fit in the storage?
return 0
def space_left_mb(storage_gb, used_mb):
# How many MB are still free after used_mb is used?
return 0
Make a free account to save your work, or press Start lab to work through the whole lesson.
Your turn: choose the parts
Three people each need a new computer.
- Person 1 edits long videos.
- Person 2 writes emails and uses the web. Person 2 has little money.
- Person 3 is a photographer. Person 3 must keep 5000 photos safe for years.
For each person, write the number of cores, the kind of storage and how much RAM you choose. Give one reason for each choice.
A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.
Make a free account to save your work, or press Start lab to work through the whole lesson.
Key words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Final check
Have a go