How does a CPU (Central
Processing Unit) of a computer really work? Well, this article will
exactly how it works. Understanding this
fundamental concept will help you in grasping the overall concepts
of computing
much more easily.
The concept of a CPU is not really that difficult to understand - although I know some folks make it appear more complicated than it has to be.
Instructions in a computer are stored in memory. The CPU fetches these instructions and executes them. It then decodes the instruction and sends the task to the appropriate unit (e.g. hard disk, display). The speed at which a CPU can perform the above tasks indicate the CPU's performance.
Read on and find out more about how a CPU works ...
Some CPUs available in the market
The concept of a CPU is not really that difficult to understand - although I know some folks make it appear more complicated than it has to be.
Instructions in a computer are stored in memory. The CPU fetches these instructions and executes them. It then decodes the instruction and sends the task to the appropriate unit (e.g. hard disk, display). The speed at which a CPU can perform the above tasks indicate the CPU's performance.
Read on and find out more about how a CPU works ...
Some CPUs available in the market
1. Instructions are Stored in Memory
The first thing to understand about CPUs is this - when programs run, their instructions are stored in
memory. The CPU fetches
instructions from the computer's memory to execute.
2. CPU Decodes the Instruction
The next step is for the processor to understand or decode the instruction and
determine what it has to do. Usually what happens is that the CPU will do some
form of computation, then stores it back to memory, the disk, or the
display.
3. How Many Instructions?
One question is, how many instructions can the CPU execution per
second? Well, this is determined by a of factors, including:
-
How large is the instruction contained in memory
-
How long it takes for the instruction to reach the CPU.
-
How long the processor takes to compute and crunch the instructions.
-
How long it takes to output the result of the processing.
Essentially, the number of instructions a CPU can execute per
second is an indication of its speed and performance.
Conclusion
Hopefully, this article has helped you understand how a CPU works. The CPU is a
central part of any computer system and it is certainly useful to grasp its
inner workings well.