Stored Program Computers
The central processing unit (CPU) is the component that carries out processing in a computer system. It does this by executing the instructions of a program.
A computer system has five main hardware components: the CPU, main memory, secondary storage, input devices and output devices. Main memory is separate from the CPU, not inside it. The CPU is the part that processes; the other components provide instructions and data, store programs and files, or handle input and output.
The CPU contains the control unit, the arithmetic logic unit (ALU) and registers.
For example, if a program checks whether a player's score is at least 50, the ALU compares the score with 50. The result of that comparison is used to decide what the program does next. If the score is 50 or more, the program might unlock the next level; otherwise it might ask the player to try again.
Edexcel GCSE Computer Science · Stored Program Computers
Edexcel GCSE Computer Science · Fetch Decode Execute Cycle