Two £450 laptops look just as fast on paper. Which will finish your work first?
You're choosing between two four hundred and fifty pound laptops for a school video project. One has more processor cores. The other has a bigger cache. Which will finish first? It depends on what you ask the laptop to do.
In Von Neumann architecture, instructions and data share main memory. The control unit fetches an instruction over buses into a register, a tiny, fast store inside the CPU. It decodes the instruction. The CPU executes it, using the arithmetic logic unit for calculations or logic when needed, then repeats the cycle.
The clock sends regular pulses to time the CPU's operations. CPU A gets three billion clock cycles per second. CPU B gets four billion. That's three and four gigahertz. If the same job needs the same number of cycles, CPU B takes less time to complete those cycles.
Two otherwise identical processors run at three and four gigahertz. What does the four gigahertz figure tell you for certain? Pick the answer that describes what the clock does.
Keep clock speed and core count the same. Cache is a small, fast store the CPU checks for data. If only part of a job's reused data fits, some reads may still need slower RAM. If all the data fits and stays cached, repeat reads can use the cache instead.
Keep clock speed and cache size the same. On one core, run the exports one after the other. On two cores, independent exports can run in parallel, at the same time. If the second export needs the first one's result and neither can be split, they still run in order.
Each independent clip takes six seconds on either core, even when both cores are busy. Ignore setup time. On one core, you add the two times to get twelve seconds. On two cores, start both together. Each finishes after six seconds, so the total is six seconds.
Now one clip takes four seconds and the other takes seven. They start together on separate, equally fast cores. Ignore setup time. How long from the start until both clips are finished? Pick an answer.
A washing machine's built-in computer controls the wash cycle. Your laptop is general-purpose. Both can use RAM for programs and data in use. RAM, cache and registers are volatile, so they lose their contents when power is switched off. ROM is non-volatile and can hold start-up instructions.
An exam might ask, ‘Explain how each change could improve CPU performance.’ Change one factor at a time. A faster clock completes the same cycles sooner. A bigger cache can cut trips to RAM when data is reused. More cores can help if the work can run in parallel. If it can’t, don’t promise double speed.