CPU
Every single computing device has a CPU.
What is a CPU and where do you find it in a computer?
• Central Processing Unit also known as a processor or microporcessor.
• Inside a CPU there are thousands of microscopic transistors, which controls the flow of
electricity through the integrated circuits.
• CPU located on a computer's motherboard.
• motherboard is the main circuit board inside a computer which connects all hardware
components together.
• Brain of the computer.
What does a CPU do?
-responsible for handling the processing of logical and mathematical operations and executing
instructions that it is given.
- execute millions of instructions per second – but can carry out only one instruction at a time.
- receives some type of input, typically from an input device (such as a monitor display screen, a
keyboard, a mouse, or a microphone) or from an application/system software program (like your
web browser or operating system).
Then the CPU is in charge of four tasks:
1. Fetching instructions from memory, in order to know how to handle the input and know the corresponding
instructions for that particular input data it received. This is also called reading from memory.
2. Decoding or translating the instructions into a form the CPU can understand, which is machine language
(binary).
3. Executing and carrying out the given instructions.
4. Storing the result of the execution back to memory for later retrieval if and when requested. This is also
called writing to memory.
Finally, there is an output, such as printing something to the screen.
The process described above is called the fetch-execute cycle, and happens millions of times per
second.
The main parts of a CPU
•CU (short for Control Unit). It regulates the flow of input and output. It's the part that fetches and retrieves
the instructions from main memory and later decodes them.
•ALU (short for Artithmetic Logic Unit). The part where all the processing happens. Here is where all
mathematic calculations take place, such as addition, subtraction, multiplication, and division, as well as all
the logical operations for decision making, such as comparing data.
•Registers. An extremely fast memory location. The data and instructions that are currenlty being
processed during the fetch-execute cycle are stored there, for quick access by the processor.
▪ What are CPU cores?
▪ a CPU can typically perform just one action at a time.
▪ It executes one instruction at a time, and it does this with the help of physical cores.
▪ a core is a CPU itself, a separate device inside the main CPU chip.
▪ The more cores a CPU has, the greater the computational power and the more tasks that
can be running and completed simultaneously, making the CPU a serial multitasker.
▪ For example, there are dual-core CPUs, meaning there are two CPUs on the same chip and
can run two instructions at the same time.
* Quad-core CPUs mean there are four CPUs on the same chip, hexa-core CPUs mean
there are six cores, and so on.