Study Guide Instructor view
CPU Performance and Embedded Systems
Teaching notes for Lesson 3.3, with controls for presenting it.
Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.
Presenting
- Open the lesson in its own window and share that window, not this one.
- Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
- Reveal hints and answers when the class is ready, and reset a demonstration before using it again.
The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.
The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.
Now on the lesson window
- On screen
- Next teaching point
Guidance for this point
Lesson plan
- Level
- Intermediate
- Time
- About 60 minutes; the steps below add up to 60
Pupils reason about three levers on CPU speed (cores, clock and cache) through two kitchens, a metronome and a shelf at the counter, and discover that each has a limit before the terms are given. They then meet the instruction set as the list of machine-code commands a CPU’s designer chose, and sort devices into embedded and general-purpose by what they are for. The lesson ends with pupils explaining all three levers with a limit for each, which shows whether they have moved beyond ‘bigger number is faster’.
Objectives
- Explain what a core, the cache and the clock are, and how each can affect the performance of a CPU
- Explain why more cores, a larger cache or a faster clock do not always give a proportionally faster computer
- Explain what an instruction set is and why its commands are machine code
- Describe the purpose and characteristics of an embedded system, and name devices that contain one
- Decide whether a device is an embedded system or a general-purpose computer, and justify the decision
Before the lesson
- Draw the made-up kitchen on the board: a storeroom across the yard, a shelf at the counter, a metronome on the wall, and room for one or four cooks.
- Mini whiteboards for predictions and for show-me answers.
- Calculators are not needed: the clock table uses GHz to cycles per second only, but have the value of a billion written on the board (1 000 000 000).
- Optionally bring in a device with a processor in it that is not a computer (a remote control, a toy or a kettle photo) for the embedded step.
Steps
Introduction Opening
On the lesson window now
On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.
Objectives on screen
- Explain what a core, the cache and the clock are, and how each can affect the performance of a CPU
- Explain why more cores, a larger cache or a faster clock do not always give a proportionally faster computer
- Explain what an instruction set is and why its commands are machine code
- Describe the purpose and characteristics of an embedded system, and name devices that contain one
- Decide whether a device is an embedded system or a general-purpose computer, and justify the decision
Purpose: Pupils reason about three levers on CPU speed (cores, clock and cache) through two kitchens, a metronome and a shelf at the counter, and discover that each has a limit before the terms are given. They then meet the instruction set as the list of machine-code commands a CPU’s designer chose, and sort devices into embedded and general-purpose by what they are for. The lesson ends with pupils explaining all three levers with a limit for each, which shows whether they have moved beyond ‘bigger number is faster’.
1. One cook or four? Think 7 min
On the lesson window now
Purpose: Pupils discover from a kitchen story that more workers do not give a proportional speed-up, so a core is introduced with its limit already attached.
Ask
- Will four cooks finish exactly four times as fast? Give two reasons why not.
- What kinds of job can only be done after another is finished?
- A long calculation where each step needs the previous answer runs on four cores, then eight. What happens?
Responses to expect
- No: some jobs must wait and the cooks share equipment
- Pouring the sauce after it is made
- It gains little: the extra cores have nothing to do at the same time
Misconceptions to challenge
- A learner may believe: “Doubling the cores doubles the speed of any program.” Respond: Return to the sauce: a step that needs the one before cannot be shared. Cores help only with work that can be done at the same time.
- A learner may believe: “More cores slow a program down because they get in each other’s way.” Respond: Cores with no work to do simply wait; they do not make the calculation harder. Ask whether the program’s work was made bigger or just not shared.
- A learner may believe: “All eight cores take part in any program.” Respond: A program has to be written so that its work can be split; a calculation that depends on its last answer cannot be.
On the board or with the pen
- Draw two lines of cooks and two columns of jobs, with an arrow showing the sauce job must come first.
What learners should notice
- Waiting and sharing equipment are the real reasons the speed-up is smaller.
- A core is a complete processing unit, not just a part of the CPU.
Checking understanding: Pupils write two reasons on a mini whiteboard; then answer the eight-cores check and explain the wrong option in kitchen words.
Depending on the answers
- If pupils choose ‘about twice as fast’: ask what a second cook can do when the next step needs the first cook’s result, then re-ask the question.
- If answers come quickly: ask for an example of a computer job that can be shared (several programs open at once) and one that cannot.
English as an additional language
- Teach core with a picture of four small cooks inside one CPU box; check the verbs wait and share.
Discussion pause: Thirty seconds of silent thinking, then pairs list two reasons.
In the lesson window
- Think it through: Kitchen B will almost certainly finish sooner. Will it finish exactly four times as fast? Give two reasons why it might not.
- Check your understanding: A program does one long calculation in which every step needs the answer from the step before. It runs on a CPU with four cores, then on one with eight. What is most likely to happen?
2. The beat the CPU works to Discover 8 min
On the lesson window now
Purpose: Pupils predict the effect of a faster metronome and its cost before clock speed and GHz are defined, then convert GHz to cycles per second.
Ask
- What happens to lunches per hour as the beat speeds up, and what might go wrong?
- How many cycles per second is 3 GHz?
- Why do CPU makers not keep raising the clock speed?
Responses to expect
- More lunches at first; heat and effort increase
- 3 000 000 000
- More heat and power, so reliability and battery limit it
Misconceptions to challenge
- A learner may believe: “A faster clock changes the answers a program gives.” Respond: The answers stay the same; only the number of steps per second changes. Ask what in a physical circuit changes when it works harder.
- A learner may believe: “A faster clock makes the CPU lose instructions.” Respond: No instructions are lost; the cost is heat and power. Use the cooks: a fast beat is more effort and heat.
- A learner may believe: “1 GHz means one thousand cycles per second.” Respond: Giga means a billion. Write 1 000 000 000 beside 1 GHz and count the zeros.
On the board or with the pen
- Write 1 GHz = 1 000 000 000 beside the metronome drawing and fill in 3 GHz and 2.5 GHz as pupils work them out.
What learners should notice
- More cycles per second does not always mean the same amount of finished work per cycle.
- Power, heat and battery life all rise with the clock.
Checking understanding: The clock-speeds table shows who can convert GHz; the clock-limit check shows who can name heat and power rather than a made-up fault.
Depending on the answers
- If pupils write 3 000 000 or 3 000: ask them to write 1 GHz first as a number with nine zeros, then multiply.
- If the table is done quickly: ask what 0.5 GHz would be in cycles per second (500 000 000).
Stretch
- Why might a phone limit its clock speed more than a desktop computer does?
English as an additional language
- Check hertz, pulse and cycle; say ‘three billion’ aloud with the number.
In the lesson window
- Think it through: The kitchen manager speeds the metronome up. What do you expect to happen to the number of lunches made each hour? What might go wrong if the beat is made faster and faster?
- Check your understanding: Why do CPU makers not simply keep raising the clock speed as high as possible?
3. A shelf within reach Think 7 min
On the lesson window now
Purpose: Pupils work out that cooks keep copies of what they use most on a shelf, and that the size of the shelf matters, before cache and RAM are separated.
Ask
- What would sensible cooks do with the things they use all the time?
- What decides how much they can keep at the counter?
- Why can a larger cache help a CPU?
Responses to expect
- Keep copies on a shelf at the counter
- How much room the shelf has
- It holds more of what is used often, so it waits for RAM less
Misconceptions to challenge
- A learner may believe: “The cache is connected to the hard drive.” Respond: The cache saves the CPU waiting for RAM; the hard drive is further away still.
- A learner may believe: “A larger cache means more cores.” Respond: Cores and cache are separate levers. Ask what a larger shelf holds more of.
- A learner may believe: “The cache stores the user’s results for later.” Respond: It holds copies of instructions and data the CPU uses often, not results for the user to look at.
On the board or with the pen
- Draw the counter shelf between the cooks and the storeroom and label distances: near, far.
What learners should notice
- The cache holds copies, so nothing is lost if an item is removed.
- A cache is small because fast memory is expensive.
Checking understanding: The why-bigger-cache check with four options; ask pupils to say which option belongs to storage, which to cores and which to the user.
Depending on the answers
- If pupils choose ‘hard drive’: ask which journey is the long walk across the yard (to RAM) and what the shelf is for.
- If answers are secure: ask why a cache cannot be as big as RAM, using cost and room.
English as an additional language
- Check copy, shelf and storeroom; link storeroom to RAM.
In the lesson window
- Think it through: What would sensible cooks do about the things they use all the time, and what would decide how much they could keep at the counter?
- Check your understanding: Why can a CPU with a larger cache perform better than one with a smaller cache?
4. Which change would help? Apply 10 min
On the lesson window now
Purpose: Pupils apply the three levers to realistic situations and see why the biggest number is not always the faster CPU.
Ask
- Music, a video call and a document all wait their turn: which change helps most?
- Which one is being described: cores, cache or clock speed?
- Jamal’s phone has 8 cores at 3 GHz, the laptop 4 at 3.5 GHz: what can be said?
Responses to expect
- More cores, because separate programs can run at the same time
- Cache, cores or clock according to each description
- It cannot be known from these two numbers: cache and the kind of work also matter
Misconceptions to challenge
- A learner may believe: “The CPU with the biggest numbers is always fastest.” Respond: Use the misconception callout: higher clock with fewer cores can lose for work that can be shared, and a small cache can hold back any clock speed.
- A learner may believe: “Multiply cores by GHz to compare CPUs.” Respond: That assumes the work can be shared perfectly. Ask what else changes how quickly a CPU works.
- A learner may believe: “Jamal is wrong because the laptop’s clock speed is higher.” Respond: Clock speed helps but is one factor. Ask whether cache size or the kind of program could change the result.
On the board or with the pen
- Make a three-row table: lever, what it does, a limit. Fill it in as pupils answer.
What learners should notice
- Three separate programs are work that can be shared out, so cores help them.
- Both Jamal and the pupil who says he is wrong are using one number.
Checking understanding: Show-me answers on best-change and the-phone-claim; ask two pupils with different answers to argue their view.
Depending on the answers
- If most pupils side with Jamal: ask whether anything in the numbers tells them about cache or about the kind of work, and then re-ask.
- If most pupils side with the clock-speed argument: give a program that can be split into four parts and ask which CPU would win.
Support
- Provide three cards (cores, cache, clock) and ask pupils to attach one to each sentence.
Stretch
- Design two imaginary CPUs where the one with the lower clock speed is clearly faster for one job, and say what the job is.
English as an additional language
- Check improve, performance and compare; use ‘it depends on’ as a model phrase.
Discussion pause: Ask pupils to decide on a mini whiteboard before discussing the phone question.
In the lesson window
- Apply it: A computer is used to play music, run a video call and edit a document all at once, and each of them seems to wait for its turn on the CPU. Which change is most likely to help?
- Apply it: Jamal says: “My phone’s CPU has 8 cores and runs at 3 GHz, so it must be faster than your laptop’s, which has 4 cores and runs at 3.5 GHz.” What can you say about this?
5. What a CPU can be told to do Think 7 min
On the lesson window now
Purpose: Pupils reason that a circuit can only receive bits and that its designer decides which patterns are commands, before ‘instruction set’ and ‘machine code’ are named.
Ask
- In what form must an instruction reach a CPU?
- Who decides which instructions a CPU will understand?
- What is likely to happen if a program written for one CPU is run on a different one?
Responses to expect
- As a pattern of bits
- Its designer
- It fails or does the wrong things, because the patterns mean different things
Misconceptions to challenge
- A learner may believe: “A CPU can read English or Python directly.” Respond: It is an electronic circuit and receives only bit patterns. Anything written in words must be translated first.
- A learner may believe: “An instruction set is the programs installed on a computer, or the keywords of a programming language.” Respond: It is the list of commands that a particular CPU can process, in machine code. Ask which of the options is about the hardware.
- A learner may believe: “All CPUs share the same instruction set.” Respond: They are designed differently, as the phone and laptop CPUs are. Ask what a pattern means to a CPU that does not list it.
On the board or with the pen
- Write a short column of bit patterns with their meanings (invented), then cross out one meaning and write a different one beside it for CPU 2.
What learners should notice
- Machine code is the CPU’s own language, in binary.
- A program in machine code belongs to one instruction set.
Checking understanding: The instruction-set-meaning check, then wrong-cpu: ask pupils to state in one sentence why the same pattern can mean different things.
Depending on the answers
- If pupils pick the options about programs or keywords: ask who decides which commands the hardware understands and which option is about that.
English as an additional language
- Teach command, pattern and designer with the bit pattern drawing; machine code is ‘machine’s code’.
In the lesson window
- Think it through: A CPU is an electronic circuit. It cannot read English, or Python, or Scratch. In what form must an instruction reach it? And who has to decide which instructions it will understand?
- Check your understanding: Which statement about an instruction set is correct?
- Apply it: A machine-code program was made for a CPU with one instruction set, and is copied to a computer whose CPU has a different instruction set. What is most likely to happen when it is run?
6. Computers you do not call computers Discover 7 min
On the lesson window now
Purpose: Pupils compare a washing machine’s processor with a laptop’s, so that ‘embedded’ is defined by a dedicated job and not by size.
Ask
- What does the washing machine’s processor do all day and night, compared with a laptop’s?
- Does being small make a computer an embedded system?
- Which of the listed devices is embedded and which general-purpose?
Responses to expect
- One job, controlling the wash, compared with many different programs
- No: a tablet is small and general-purpose
- Washing-machine controller embedded; laptop general-purpose
Misconceptions to challenge
- A learner may believe: “Small computers are always embedded systems.” Respond: A tablet is small but runs whatever its user chooses. What matters is the dedicated job.
- A learner may believe: “Any device with a processor is embedded.” Respond: A laptop has a processor too. Ask what it does that the washing machine’s does not.
- A learner may believe: “Embedded systems cannot be changed at all.” Respond: Their program is fixed for their job and users do not change it, though a manufacturer can update it. The lesson’s point is the dedicated function.
On the board or with the pen
- Draw two boxes: ‘one dedicated job inside a bigger device’ and ‘many programs the user chooses’; sort devices in as the class decides.
What learners should notice
- Embedded systems sit inside a bigger device.
- Dedicated means one function, repeated.
Checking understanding: The sort-devices table: ask pupils to give the reason for each row in the words dedicated or general.
Depending on the answers
- If pupils use size to sort: bring in the tablet or a large industrial controller and ask whether size or the job decides.
- If the sort is easy: add borderline cases such as a games console or a smart speaker and ask what they do.
English as an additional language
- Check embedded and dedicated; show embedded as ‘built in’ with a drawing.
In the lesson window
- Think it through: A washing machine and a laptop both contain a processor. What does the washing machine’s processor do all day and night, compared with the laptop’s?
7. Embedded or general-purpose? Apply 6 min
On the lesson window now
Purpose: Pupils apply the definition of embedded to a new device and to a four-device odd-one-out, with no hint before answering.
Ask
- Why is a vending machine’s control system an embedded system?
- Which of the four devices is not embedded, and how do you know?
Responses to expect
- It does one dedicated job inside a bigger device and users do not change its program
- The laptop, because it runs whatever programs its user chooses
Misconceptions to challenge
- A learner may believe: “A street-lighting controller is not embedded because it is part of a big system.” Respond: It does one dedicated job: switching lamps at dusk. Ask what it would do if the user could install games on it.
- A learner may believe: “Every device with a processor is embedded.” Respond: The laptop has a processor and is not embedded; the job decides.
What learners should notice
- Three of the four options have one dedicated function.
Checking understanding: Show-me answers; ask pupils to name the dedicated job for each of the three embedded devices.
Depending on the answers
- If pupils choose a device because it is large or expensive: ask what the device’s processor does all day, and sort again by job.
Support
- Ask pupils to complete ‘This device’s processor does one job: ___’ for each option first.
English as an additional language
- Check street lighting, alarm panel and microwave; show each in a picture.
In the lesson window
- Check your understanding: Which statement best explains why the control system of a vending machine is an embedded system?
- Apply it: Four devices are listed: a street-lighting controller, a security-alarm panel, a laptop and a microwave oven. Which one is NOT an embedded system?
8. Show what you know Consolidate 8 min
On the lesson window now
Purpose: Pupils explain how cores, cache and clock affect speed and give a limit for each, which tests whether the lesson’s central idea, that no single number decides performance, has been understood.
Ask
- Explain to a friend how cores, cache and the clock each affect speed, and give one limit for each.
- Two CPUs differ only in clock speed (2 GHz and 3 GHz): which statement is true?
Responses to expect
- Cores: several jobs at once, if the work can be shared; cache: fewer waits for RAM, but small and costly; clock: more steps per second, but heat and power
- CPU Q has more cycles each second, so it can carry out more instructions
Misconceptions to challenge
- A learner may believe: “A higher clock speed means more cores.” Respond: They are separate levers. Ask which of the three the number in GHz describes.
- A learner may believe: “The slower CPU is using more power.” Respond: Fewer cycles per second would normally mean less power and heat, not more.
On the board or with the pen
- Build the final table of lever, benefit and limit from pupils’ answers.
Checking understanding: Collect explanations; look for all three levers and a limit for each, and check that no one uses ‘bigger is always better’.
Depending on the answers
- If an explanation covers only one or two levers: ask a prompt for the missing one using the kitchen: one cook or four, the metronome, the shelf.
- If answers are strong: ask pupils to predict which lever would help most for a video-editing program and why.
Support
- Provide a table with the three levers down the side and blanks for benefit and limit.
English as an additional language
- Allow a labelled drawing in place of a paragraph, then add one sentence.
Discussion pause: Two minutes of silent writing before pairs compare.
In the lesson window
- Think it through: Explain to a friend, in your own words, how cores, cache and the clock each affect how fast a CPU works, and give one limit for each.
- Check your understanding: Two CPUs are the same in every way except the clock speed: CPU P runs at 2 GHz and CPU Q at 3 GHz. Which statement is true?
Lesson recap Closing
On the lesson window now
On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.
Points to listen for
- Ask pupils to fill in a three-row table from memory: core, cache, clock, each with what it does and one limit.
- Take the Jamal question and ask pupils to write a reply that would persuade him, using at least two factors other than the numbers he quoted.
- Look ahead: the next lessons turn to input and output devices, so ask pupils to name one embedded system they used today and its one job.
- Ask pupils to pick one idea they were wrong about at the start of the lesson and say what changed their mind.
Consolidation
- Ask pupils to fill in a three-row table from memory: core, cache, clock, each with what it does and one limit.
- Take the Jamal question and ask pupils to write a reply that would persuade him, using at least two factors other than the numbers he quoted.
- Look ahead: the next lessons turn to input and output devices, so ask pupils to name one embedded system they used today and its one job.
- Ask pupils to pick one idea they were wrong about at the start of the lesson and say what changed their mind.