What is the main function of the CPU
The central processing unit (CPU) of a computer is a piece of hardware that carries out the instructions of a computer program. It performs the basic arithmetical, logical, and input/output operations of a computer system. ... The CPU is sometimes also referred to as the central processor unit, or processor for short.