← Back to course
2/6
Week 03 Β· The processor

Tuesday

The tick of the clock
// One instruction at a time, billions of times a second
⏱ about 15 min

Tuesday: The tick of the clock

Rocket taps a pencil on the bench, fast. "If I were a processor, how many taps a second?" he asks. He manages about five.

Raven listens to the laptop on the bench. "What do you notice?" she asks. "It is silent, but it is doing something."

Nova pulses her lights like a tiny drum. "Every processor has a clock," she says. "Not for telling time. For keeping steps in time. Would you like a hint? Think about a metronome."

A clock that does not tell time

Inside every processor is a clock. It does not show hours and minutes. It makes a steady tick, over and over.

With each tick, the processor moves to its next step. The ticks keep every part of the processor in time. They are like a drum beat for a marching band.

The speed of the clock is counted in ticks per second. One tick per second is one hertz.

Modern processors tick billions of times each second. One gigahertz means one billion ticks every second.

ThingAbout how often
Your heartAbout one or two beats a second
Rocket tapping a pencilAbout five taps a second
A hummingbird wingDozens of beats a second
A processor clockBillions of ticks a second

A billion is a huge number. If you counted one number every second, a billion would take over thirty years.

Fast, but not endless

Even at billions of ticks a second, a processor can run out of time.

A game might need a huge number of steps for every picture it draws. If the steps take too long, the picture arrives late. The game stutters.

Closing other apps gives the game more of the processor's time. A simpler game needs fewer steps and runs smoothly on an older device.

This is why the crew asks: what is the processor busy doing?

One gigahertz means how many ticks each second? Write the number as a word.
WHY THIS EXERCISEGiga means a billion. One gigahertz is one billion ticks every second.
ABOUT THE CLOCK
  • Read the question.
  • Tap your answer.
What does the clock inside a processor do?
What happens at each tick?
A game stutters. What is the most likely reason?
StatementTrue or false?
A processor clock shows the time of day.?
One hertz is one tick per second.?
A processor ticks only a few times a second.?
Closing extra apps gives a game more processor time.?
WHY THIS EXERCISEThe processor clock is a beat, not a time of day. Hertz counts how many beats a second.
Ticks per second are counted in a unit called what?
The steady tick inside a processor is called the what?
A marching band keeps in step with a what?
PUT THESE FROM SLOWEST TO FASTEST
  • ?A hummingbird wing
  • ?Rocket tapping a pencil
  • ?Your heartbeat
  • ?A processor clock
WHY THIS EXERCISEA processor clock is faster than anything in the table by a huge amount. That speed is why computers seem instant.
Try it
Clap a steady beat. Have a partner take one step on each clap.
Speed up the beat. Then slow it down.
Notice that your partner can only move when you clap.

You found the heartbeat of the machine! Tomorrow you will learn the only two things a processor can tell apart. On and off.

← Monday