What Is the Main Purpose of a CPU in a Computer?
A central processing unit (CPU) is sometimes referred to as the brains of a computer. Every piece of information that is stored or processed on a computer goes through the CPU at some point.
-
Purpose
-
A CPU executes programs stored on a computer. It takes in instructions and puts out data.
Location
-
A computer's CPU is located on the motherboard and is generally the largest chip there.
-
Operation
-
A CPU uses four steps to run programs: fetch, decode, execute and writeback. It first fetches instructions from the program, then it decodes and organizes the instructions into significant parts. Next, it executes the individual parts of the instructions, and then it writes back the results into some form of memory. Often the results are written into a sort of temporary memory in the CPU itself so they can be accessed quickly for the next set of instructions from the program.
Performance
-
CPU performance is measured in "cycles per second," which is the number of times per second that the chip can execute instructions. This measurement is then expressed in hertz. A CPU that runs at 4 Gigahertz (GHz) can perform 4 billion cycles per second.
Parallel Processing
-
Modern CPUs use a technique called parallel processing, where more than one instruction is processed at a time. Basically, the CPU begins fetching and decoding a second set of instructions before it is finished executing the first set. This significantly increases computer performance.
-
References
- Photo Credit cpu image by TEA from Fotolia.com