CPU is the processing unit of the computer. Processing is a procedure that transforms raw data into useful information. CPU is attached to the motherboard or system board.
Basically, CPU consists of three sections;
a. Memory Unit (MU)
b. Control Unit (CU)
c. Arithmetic and Logic Unit (ALU)
a. Memory Unit:- Memory unit is the storage unit in the CPU. It holds the data or information which is called for processing. This unit is composed up of very fast registers. It is very small in storage size. Basically, it holds intermediate data during processing.
b. Control unit :- It controls all the units in the computer system. It acts as a traffic that directs the flow of data to various portions at most appropriate time.
C. Arithmetic and logic Unit : All arithmetic and logical operations are performed by this unit. Arithmetic operations include addition, subtraction, multiplication and division. Logical operation involves comparison of two or more variables or expression.