Factors affecting CPU performance & embedded systems
Computer Science · Computer architecture & systems
Question 1 of 10
0What is an interrupt in a microcontroller system?
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Factors affecting CPU performance & embedded systems explained
The performance of a CPU is the speed at which it completes work. The clock speed is the number of clock cycles the CPU makes each second, measured in hertz (Hz), usually gigahertz (GHz), where one gigahertz is one thousand million cycles per second. Each cycle lets the CPU carry out a step of an instruction, so a faster clock generally means more work per second.
Other factors also matter. The number of cores lets several tasks run at once. A larger cache, a small, fast memory close to the CPU, keeps frequently used data within easy reach, so the CPU waits less. The word size, the amount of data the CPU processes at one time, and the instruction set design also affect how much work each cycle achieves.
An embedded system is a computer built into a larger device to perform one dedicated task, such as the controller in a washing machine, a car engine or a traffic light. Embedded systems usually use a microcontroller, which combines a processor, memory and input and output ports on one chip. They are designed for low power use, low cost and reliable real-time response, rather than for general purpose speed.
Performance is therefore a trade-off. A higher clock speed uses more power and produces more heat, which an embedded device with a small battery may not be able to afford.
Worked example
A CPU runs at 2 GHz, which is cycles per second. How long does a program that needs cycles take?
- Time equals cycles divided by cycles per second: .
- The program takes 2 seconds. Each cycle lasts ns.
What you will practise
86 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- What does the clock speed of a CPU measure?
- What is a core in a multi-core processor?
- What is the main purpose of cache memory in a CPU?
- What is an embedded system?
- Which of these is the best example of an embedded system?
- Which characteristic is typical of an embedded system?
- How many hertz are in 1 GHz?
- What is the main advantage of a quad-core processor over a single-core processor running at the same clock speed?
…and 78 more.