A central processing unit (CPU) (formerly also referred to as a central processor unit[1]) is the hardware within a computer that carries out the instructions of a computer program by performing the basic arithmetical, logical, and input/output operations of the system.