The CPU comprises of control unit (CU), memory and arithmetic / logic unit (ALU).ALU performs arithmetic and logic operations and the CU extracts instructions from memory (called main memory/primary memory/RAM) and decodes and executes them, calling on the ALU when necessary.