The Central Processing Unit (CPU) is the primary component of a computer that performs most of the processing inside the computer. It contains the Arithmetic Logic Unit (ALU) which specifically handles calculations and comparisons, but the CPU as a whole is the entity that takes decisions based on instructions.