Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

7.1 (2 of 3): Processor, memory and storage

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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

WordWhat it meansExample
CPUThe processor, which runs a program's instructions.The cook
CoreOne working part inside a processor.Four cores
Clock speedHow many steps a processor makes each second, in GHz. 1 GHz is 1 billion steps a second.3 GHz
CacheA very small, very fast memory inside or next to the processor.The chopping board
RAMMain memory for the programs and data in use now. Power off erases it.The table
ROMRead-only memory that keeps start-up instructions with no power.The recipe on the wall
Secondary storageStorage that keeps files for a long time, even with no power.The cupboard
MB and GBMegabyte and gigabyte, sizes of data. 1 GB is 1000 MB.A song is 4 MB
FirmwareSmall 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 AProcessor B
Cores28
Clock speed3.5 GHz3.0 GHz
Cache4 MB16 MB
Good forOne program that needs speedMany 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Mobile 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

RAMROM
What it holdsPrograms and data in use nowFirmware: the start-up instructions
Power offEverything is lostEverything is kept
Can you change it?Yes, all the timeNo, or only with special steps
Size in a laptopLarge, for example 16 GBVery 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Extra: 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?

StepWhat to doResult
1A song is 4 MB. The phone has 64 GB.
2Change GB to MB: 64 times 1000 (64 x 1000)64000 MB
3Divide by the size of one song: 64000 divided by 4 (64000 / 4)16000 songs
4Check: 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?

Code: python
# 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your 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.

Code: python
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.

  1. Person 1 edits long videos.
  2. Person 2 writes emails and uses the web. Person 2 has little money.
  3. 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

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.