The computer's central processing unit (CPU) is the portion of a computer that retrieves and executes instructions. It consists of the main memory, control unit, and arithmetic-logic unit.