Article Content King

You are viewing: Computer Processors: CPU Operation
By Youssef Edward

Computer Processors: CPU Operation

Articles - Computers - Hardware - View Article



Publish this article

Computer processors (also called CPU) are the most important part in the computer at all. It controls the overall remaining components of the computer such as the mouse, keyboard, monitors, and others. The processor is an electronic circuit that executes computer programs. It does in four basic phases:

1. Fetch: in this phase, the processor collects the bytes to execute from memory (which may be RAM or cache). Each instruction is saved in memory as one or more bytes called word. The more the word length, the more complexity and power consumption of the processor. Once the processor collects the bytes, then it is ready to decode it.

2. Decoding: In this phase, the processor takes the bytes read in the previous step and input them to the decoder. The decoder activates then the line corresponding to the instruction whose bytes equal to the bytes read from the fetching phase. Each instruction in the processor is mapped to a certain bits or bytes by the designer so that when the processor fetches these bits or bytes, it can understand them. The number of bits used to represent each instruction may vary according to the processor type. Note that this number of bits may not take the whole word in the memory. For example if the word is represented by 8 bits, then the first four bits can be assigned to the instruction part and the last four bits can be assigned to the data which is needed for the instruction to execute.

3. Executing: once the processor knows the meaning of the bits by the decoder, it goes then to the execute phase. In this phase, the processor makes the necessary operation as denoted by the decoder. This operation is done on the operand contained along with the instruction bits in the memory word.. The operation can be addition, subtraction, AND, or any mathematical or logical operation.

4. Write Back: once the processor done the operation, it writes it back to the memory in the place denoted by the instruction. This result may be fed to other instructions in the same program.

This processes are repeated for each instruction until the whole program is executed. recall that the program is composed of a series of instructions that are hold in memory. each time an instruction is encountered, the above phases are repeated for each instruction.

Modern processors can execute these phases in parallel by techniques called parallel processing. this will allow for higher speed of execution but at the cost of the coplexity of the hardware and power consumption. parrallel processing requires to monitor processes which are executed in parallel such that they cannot alter variables at the same time. this is what is called synchronization. if two programs which are executed at the same time access the same variable it will lead to errors in the results. this is one reason that make parallel processing more complicated. In terms of programming, processes are called threading, which means that the programmer can create two blocks of instructions which are executed at the same time.

See All articles From Author

Youssef Edward is an Electrical Engineer and he is the owner of www.tips-made-easy.info site. He studied too much in many branches of computer.

Learn more about computer CPU and Processors now.

Find Free Computer Tips here

Best Ways to Make Money Online Immediately

Article Source : http://www.articlecontentking.com

Tags: computer processor cpu operation

Word Count Appx. : 508 | Article Views 683 Published 30-01-2010


Related articles
The 12F675 - A PIC Microcontroller project guide.
By: John Main | 06-06-2007
A high level description of the 12F675 microcontroller and some ideas for how you can use it. With this device, once you know how to use it you can make Any Number of Projects. (read entire article)
Quiet PC Cooling
By: Phil Rogers | 17-05-2009
Some PCs are very noisy, whicle others run whisper-quiet. Why is this, and what can be done about a noisy PC? This article explains why PCs are noisy and what you can do to reduce the problem. (read entire article)
Budget HP LaserJet Printers
By: Hemanti Chunawala | 08-02-2009
Ever since the Hp rolled out its budget Laserjet printer, Hewlett Packard printers have created a lot of buzz. HP laserjet printer combined with its longevity and cost efficient print rate offer great value for money to its end users. (read entire article)
World54 An Introduction to Power Tool Battery
By: Kevin Moshayedi | 06-11-2008
Power tool batteries are of different types. Ni-Cd power tool batteries are made from the finest cells and parts and it has some drawbacks. Power tool with Li-ion battery pack runs without problems. Power tool batteries are specifically designed for ea (read entire article)
Using Electronic Devices Makes Your Life Better
By: Justin Ferguson | 14-10-2009

Electronic devices make the world go round, not only do they create a lot of employment they actually improve your life, the actual fact is that they make your life better and easier, giving you more time to do the things you enjoy.

(read entire article)
The Story and Evolution of Ink
By: Chet Val | 25-08-2009
Different inks are composed of different components depending on the application, ink used in computer printing particularly, has come a long way from its earliest forms. (read entire article)
HP Compaq 6930P
By: Gursel Batmaz | 17-02-2010

The Hp Compaq 6930P FL492AW notebook provides portability and performance for those road warriors out there.

(read entire article)
Apple MacBook Review
By: Asli Mana | 01-02-2010

Apple choosed building MacBook laptops not from metal, from a single chunk of polycarbonante, the though stuff we all have been using for a long time.

(read entire article)
Another Sony Vaio Notebook: VPCZ116GXS
By: Yasin Resif | 06-03-2010

The Z116GXS houses each integrated and discrete images chipsets along while using capability to switch in between the two. That way, 3D-intensive tasks can make use of Nvidia's highly effective images, even though the integrated graphics can conserve b (read entire article)