Thursday, February 25, 2010

How Does a CPU Work?



The CPU sits in the motherboard as the central unit. All of the other hardware components and programs installed on the system must go through the CPU before their function can be carried out. The CPU's job function is important and enormous in scale.

When a function, program or piece of data is called, the CPU pulls it from Random Access Memory (RAM) and any other hardware in order to process it. The CPU then reads the instructions associated to the task before sending it back to RAM. The instructions that the CPU receives pertains to calculations and data transportation. The system bus is the trail that the data must travel before it is executed. It is the CPU's job to make sure that the data is guided through the system bus to be processed by the CPU and then on to the next step. With every stop on the system bus, the CPU makes sure that the data gets there in the correct order.

There are two types of data that the CPU handles at a given time. One is the data that needs to be processed. The other is the program code that is connected to the data. The programming code is a list of instructions on how the data should be handled and processed in a language that the CPU can interpret. The programming code also contains the route of the system bus for the data. Since other components of the computer may not understand the programming code, it is the CPU's job to interpret the instructions to those components. The CPU continues to handle both pieces of data until it is no longer needed, which is when the program is closed or the hardware is no longer accessed.

No comments:

Post a Comment