Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A games console has a processor with a clock speed of .
How many billion clock cycles happen in half a second? How many seconds does a task of 9 billion clock cycles take, if one instruction is done in each cycle?
The clock speed is the number of clock cycles each second, in hertz: is 3 billion cycles each second. In the simple model of this course, time = cycles needed cycles each second. More cores share the work that can be split, but the rest still runs on one core. A larger cache means fewer slow fetches from RAM. An embedded system performs a dedicated function inside a larger device.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Half a second. Each second has 3.6 billion cycles, so half a second has billion cycles.
Step 2. The task. seconds.
Check. In 2.5 seconds there are billion cycles. Yes.
Answer: 1.8 billion cycles, and 2.5 seconds.
Watch out. Real processors can do more or less than one instruction in each cycle. The simple model is only for comparing.
Log in to join the discussion.
Loading…