It is always asking questions by computer beginners what is CPU and its functions? As the CPU is an important part of a computer machine.
To clarify, the CPU is also known as a brain of a computer.
CPU stands for Central Processing Unit. In general language, CPU also known as main processor, processor, computer processor.
What is CPU or Central Processing Unit?
As said above, it acts as a brain of a computer which contains circuits require to process the input, store data and output the result.
The CPU is a small chip consisting of a thin layer of thousands of transistors and has three (3) important components in it:
- Memory Unit
- Control Unit
- Arithmetic Login Unit (ALU)
Following diagram shows, how a data process from input to until output via a CPU:
Memory or Storage Unit: This function can store instructions, process the data and intermediate results. All the inputs from a user and outputs results are transmitted through the memory unit.
Control Unit (CU): CU It obtains the instructions from the memory unit, interprets them and directs the processor’s operation of the computer.
Arithmetic Login Unit (ALU): Basically, ALU performs mathematical, logical, and decision operations of a computer. This unit contains two subsections as below:
- Arithmetic Section: Performs arithmetic operations such as addition, subtractions, division and multiplication, etc.
- Logic Section: This performs logic operations like selecting, matching, comparing, or merging the data, etc.
Types of CPU
Nowadays, there are many computer processors are available with different names along with different architectures (32-bit and 64-bit).
Also, comes with different speeds and capabilities.
Note: Few smartphones and tablets devices use ARM CPU.
Where is the CPU Located in the Computer?
The CPU is located on a CPU socket, which in embedded on computer motherboard inside the cabinet.
What is the Function of a CPU?
The main an important function of a central processing unit is, from the input data, store and process data by performing mathematical and logical calculation and output data to the users.
The below four example steps can make you understand easily:
- Firstly, the CPU receives the data from input devices such as keyboard and mouse or any other.
- Secondly, the CPU process received input data by performing mathematical and logical calculations
- As a result, CPU provides the processed data on your output device which is most probably, your Monitor screen or any other.
- Finally, CPU stores the processed data in the form of a cache so user can use is in the future.