The Wayback Machine - https://web.archive.org/web/20240907003926/https://www.geeksforgeeks.org/central-processing-unit-cpu/
Open In App

Central Processing Unit (CPU)

Last Updated : 12 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

CPU [Central Processing Unit]. It is the brain of the computer. It is the part that does most of the work in a computer system. Just like how our brain controls our body and processes information, the CPU carries out instructions from programs and performs calculations. It’s made up of smaller components that work together to execute tasks, making it the heart of any computing device.

All types of data processing operations from simple arithmetic to complex tasks and all the important functions of a computer are performed by the CPU. It helps input and output devices to communicate with each other and perform their respective operations. It also stores data which is input, intermediate results in between processing, and instructions. The CPU’s job is to make sure everything runs smoothly and efficiently. In this article, we are going to discuss CPU in detail.

What is a CPU?

A Central Processing Unit is the most important component of a computer system. A CPU is hardware that performs data input/output, processing, and storage functions for a computer system. A CPU can be installed into a CPU socket. These sockets are generally located on the motherboard. CPU can perform various data processing operations. CPU can store data, instructions, programs, and intermediate results.

CPU

CPU

History of CPU

Since 1823, when Baron Jons Jakob Berzelius discovered silicon, which is still the primary component used in manufacturing CPUs today, the history of the CPU has experienced numerous significant turning points. The first transistor was created by John Bardeen, Walter Brattain, and William Shockley in December 1947. in 1958, the first working integrated circuit was built by Robert Noyce and Jack Kilby.

The Intel 4004 was the company’s first microprocessor, which it unveiled in 1971. Ted Hoff’s assistance was needed for this. When Intel released its 8008 CPU in 1972, Intel 8086 in 1976, and Intel 8088 in June 1979, it contributed to yet another win. The Motorola 68000, a 16/32-bit processor, was also released in 1979. The Sun also unveiled the SPARC CPU in 1987. AMD unveiled the AM386 CPU series in March 1991.

In January 1999, Intel introduced the Celeron 366 MHZ and 400 MHz processors. AMD back in April 2005 with its first dual-core processor. Intel also introduced the Core 2 Dual processor in 2006. Intel released the first Core i5 desktop processor with four cores in September 2009.

In January 2010, Intel released other processors like the Core 2 Quad processor Q9500, the first Core i3 and i5 mobile processors, and the first Core i3 and i5 desktop processors.

In June 2017, Intel released Core i9 desktop processor, and Intel introduced its first Core i9 mobile processor In April 2018.

Different Parts of CPU

Now, the CPU consists of 3 major units, which are:

  • Memory or Storage Unit
  • Control Unit
  • ALU(Arithmetic Logic Unit)

Let us now look at the block diagram of the computer:

Parts of Central Processing Unit

Here, in this diagram, the three major components are also shown. So, let us discuss these major components in detail.

Memory or Storage Unit

As the name suggests this unit can store instructions, data, and intermediate results. The memory unit is responsible for transferring information to other units of the computer when needed. It is also known as an internal storage unit or the main memory or the primary storage or Random Access Memory (RAM) as all these are storage devices.

Its size affects speed, power, and performance. There are two types of memory in the computer, which are primary memory and secondary memory. Some main functions of memory units are listed below:

  • Data and instructions are stored in memory units which are required for processing.
  • It also stores the intermediate results of any calculation or task when they are in process.
  • The final results of processing are stored in the memory units before these results are released to an output device for giving the output to the user.
  • All sorts of inputs and outputs are transmitted through the memory unit.

Control Unit

As the name suggests, a control unit controls the operations of all parts of the computer but it does not carry out any data processing operations. Executing already stored instructions, It instructs the computer by using the electrical signals to instruct the computer system. It takes instructions from the memory unit and then decodes the instructions after that it executes those instructions. So, it controls the functioning of the computer. Its main task is to maintain the flow of information across the processor. Some main functions of the control unit are listed below:

  • Controlling of data and transfer of data and instructions is done by the control unit among other parts of the computer.
  • The control unit is responsible for managing all the units of the computer.
  • The main task of the control unit is to obtain the instructions or data that is input from the memory unit, interpret them, and then direct the operation of the computer according to that.
  • The control unit is responsible for communication with Input and output devices for the transfer of data or results from memory.
  • The control unit is not responsible for the processing of data or storing data.

ALU (Arithmetic Logic Unit) 

ALU (Arithmetic Logic Unit) is responsible for performing arithmetic and logical functions or operations. It consists of two subsections, which are:

  • Arithmetic Section: By arithmetic operations, we mean operations like addition, subtraction, multiplication, and division, and all these operations and functions are performed by ALU. Also, all the complex operations are done by making repetitive use of the mentioned operations by ALU.
  • Logic Section: By Logical operations, we mean operations or functions like selecting, comparing, matching, and merging the data, and all these are performed by ALU.

Note: The CPU may contain more than one ALU and it can be used for maintaining timers that help run the computer system.

What Does a CPU Do?

The main function of a computer processor is to execute instructions and produce an output. CPU work Fetch, Decode, and Execute are the fundamental functions of the computer.

  • Fetch: the first CPU gets the instruction. That means binary numbers that are passed from RAM to CPU.
  • Decode: When the instruction is entered into the CPU, it needs to decode the instructions. with the help of ALU(Arithmetic Logic Unit), the process of decoding begins.
  • Execute: After the decode step the instructions are ready to execute.
  • Store: After the execute step the instructions are ready to store in the memory.

Types of CPU

We have three different types of CPU:

  • Single Core CPU: The oldest type of computer CPU is a single-core CPU. These CPUs were used in the 1970s. these CPUs only have a single core that performs different operations. This means that the single-core CPU can only process one operation at a single time. single-core CPU CPU is not suitable for multitasking.
  • Dual-Core CPU: Dual-Core CPUs contain a single Integrated Circuit with two cores. Each core has its cache and controller. These controllers and cache work as a single unit. dual-core CPUs can work faster than single-core processors.
  • Quad-Core CPU: Quad-Core CPUs contain two dual-core processors present within a single integrated circuit (IC) or chip. A quad-core processor contains a chip with four independent cores. These cores read and execute various instructions provided by the CPU. Quad Core CPU increases the overall speed of programs. Without even boosting the overall clock speed it results in higher performance.

What is CPU Performance?

CPU performance is how fast a computer’s processor (CPU) can complete the task. It is measured by the number of instructions completed in one second. Its performance depends on the processor’s clock speed and other factors like its design and the size of its cache.

What are Computer Programs and Where are They Stored?

A computer program is a set of instructions written by a programmer that tells a computer what to do. For example, Using a web browser or a word processor is a program, Performing math operations on a computer and clicking and selecting items with a mouse or touchpad is also a program.

Storage of Programs

There are two ways of storing programs on the computer memory:

  • Permanent Storage: Programs are stored permanently on storage devices like HDD, or SSD.
  • Temporary Storage: When a program is running on a CPU, its data is stored in RAM from HDD or SDD. Temporary because RAM is volatile, it loses all data when the power is turned off.

Advantages

  • Versatility: CPU can able to handle a complex task, from basic calculation to managing the operating system.
  • Performance: Modern CPU are vary fast and able to perform billions of calculation per second.
  • Multi-core: CPU have multiple core and able to handle multiple task simultaneously.
  • Compatibility: CPUs are designed to be compatible with a wide range of software, this help to run different applications by using single CPU.

Disadvantages

  • Overheating: CPU generate a lot of heat while performing complex task. This requires effective cooling solutions, such as fans or liquid cooling systems.
  • Power Consumption: High-performance CPUs can consume a vary high amount of power, which cause to generate higher electricity bills and the need for a robust power supply.
  • Cost: Best performance CPU can be expensive. Which can be a barrier for some users or applications that need high computing power.
  • Limited Parallel Processing: While multi-core CPUs can handle multiple tasks at once, they are still not as efficient at parallel processing as specialized hardware like GPUs (Graphics Processing Units), which are designed for handling many tasks simultaneously.

Conclusion

The CPU is the brain of a computer. It carries all the instructions from programs, handling everything from simple calculations to complex tasks. Without the CPU, the computer wouldn’t be able to run programs or perform any actions. Without UPU computer like a dumb maniche. So it is vary important for the overall functioning of a computer.

Frequently Asked Questions on Central Processing Unit – FAQs

Is a CPU the same as a microprocessor?

The terms CPU and microprocessor are frequently used interchangeably, but they are not exactly the same. All CPUs are microprocessors, but converse is not true.

What are types of CPU?

There are mostly three types of CPU:

  • Single core CPU: This have a single core which is used to processing data. this is the oldest CPU. This performs a single task at a time.
  • Dual Core CPU: This CPU have two core and a single Integrated Circuit.
  • Quad Core CPU: This CPU have two Dual Core and a single Integrated Circuit.

What are CPUs made of?

CPU is made of silicon. silicon is semiconductor metal. An electrical connections to the pins that create contact with the motherboard. CPU produces lot of heat that’s why an “integrated heat spreader” is also exist to the top.

What are different parts of CPU?

There are three different parts of CPU:

  • Arithmetic and Logical Unit (ALU): The Arithmetic and Logical Unit (or ALU) execute arithmetic and logical operations.
  • Control Unit (CU): The control unit communication with input and output devices for the transfer of data from memory.
  • Memory or storage unit: All sorts of inputs and outputs are spread through the memory unit.


Previous Article
Next Article

Similar Reads

Unit of Volume - SI Unit, CGS Unit
Unit of Volume is cubic meter represented as m3. Volume is a measure of the capacity of any vessel or a three-dimensional body. In the International System of Units (SI), the unit of volume is m3. Volume can also be represented in other units such as cubic centimetres, litres, millilitres, gallons, etc. In this article, we will learn the definition
6 min read
Unit of Mass - SI Unit
Unit of Mass is a standard quantity used to measure the amount of matter in an object. The SI unit of mass is kilogram (kg). Other common units of mass include the gram (g), tonne (t), pound (lb), etc. Mass plays a crucial role in our daily lives, influencing our understanding of the physical world and contributing to various scientific and practic
6 min read
Unit of Heat - SI Unit
Unit of Heat is Joule. It is named after the scientist James Prescott Joule in recognition of his contributions to research in thermal sciences. Heat is a form of energy which deals with the body's temperature. Heat energy flows from one body to another due to their temperature difference. Heat is also measured in calories or kilocalories. In this
6 min read
Unit of Power - SI Unit
Unit of Power is Watt (J/s). It is named after the scientist James Watt in recognition of his contributions towards developing the steam engine. Power is defined as the rate at which work is done. Hence, the base unit of power is the unit of work divided by the unit of time. Several units used to measure the magnitude of power include Watt, Horsepo
5 min read
Unit of Distance - SI Unit
Unit of Distance is meter denoted as 'm'. Distance is a fundamental concept in physics and everyday life, quantifies the length of path between two points or objects. The other common units of distance are kilometer(km), centimeter(cm), yard(yd), inch(in), miles(mi), etc. In this article, we will learn about the definition of distance, unit of dist
6 min read
Central angle of a N sided Regular Polygon
Given an integer N representing N sided regular polygon, the task is to find the angle made by the sides on the centre of the polygon that is the central angle. The central angle is the angle formed by the two vertices forming an edge and the centre. Examples: Input: N = 6 Output: 60 Explanation: The polygon is a hexagon with an angle 60 degree. In
3 min read
Class 9 RD Sharma Solutions - Chapter 24 Measures of Central Tendency - Exercise 24.4
Question 1. Find out the mode of the following marks obtained by 15 students in a class:Marks : 4, 6, 5, 7, 9, 8, 10, 4, 7, 6, 5, 9, 8, 7, 7. Solution: The mode is the most common number that occurs frequently in the given data. Marks 4 5 6 7 8 9 10 Number of students 2 2 2 4 2 2 1 Here, we can see that 7 occurred most frequently.Hence, Mode = 7 Qu
2 min read
Class 9 RD Sharma Solutions - Chapter 24 Measures of Central Tendency - Exercise 24.1 | Set 2
Question 13. The traffic police recorded the speed (in km/hr) of 10 motorists as 47, 53, 49, 60, 39, 42, 55, 57, 52, 48. Later on an error in recording instrument was found. Find the correct average speed of the motorists if the instrument recorded 5 km/hr less in each case. Solution: Given: The speed of 10 motorists are 47,53,49,60,39,42,55,57,52,
8 min read
Class 9 RD Sharma Solutions - Chapter 24 Measures of Central Tendency - Exercise 24.1 | Set 1
Question 1. If the heights of 5 persons are 140 cm, 150 cm, 152 cm, 158 cm and 161 cm respectively. Find the mean height. Solution: Given: The heights of 5 persons are 140 cm, 150 cm, 152 cm, 158 cm and 161 cm Mean height = (Sum of heights) / (Total number of persons) Sum of heights = 140 + 150 + 152 + 158 + 161 = 761 Total number of persons = 5 So
5 min read
Class 9 RD Sharma Solutions - Chapter 24 Measures of Central Tendency - Exercise 24.2
Question 1. Calculate the mean for the following distribution:x:56789f:4811143 Solution: xffx5420684871498811889327 N = 40[Tex]\sum f_x = 281[/Tex] Now, mean = [Tex]\overline{x} = \frac{\sum f_x}{N}[/Tex] = 281/40 = 7.025 Question 2. Calculate the mean for the following distribution:x:19212325272931f:13151618161513 Solution: xffx1913247211531523163
5 min read
Class 9 RD Sharma Solutions - Chapter 24 Measures of Central Tendency - Exercise 24.3
Question 1. Find the median of the following data:83, 37, 70, 29, 45, 63, 41, 70, 34, 54 Solution: Ascending order sequence of the numbers : 29, 34, 37, 41, 45, 54, 63, 70, 70, 83 Total number of terms, supposedly, n = 10 (even) Median = [Tex]\\ \frac{\frac{n}{2}^{th} \space value + (\frac{n}{2}+1\space ^{th}) value}{2} \\ = \frac{\frac{10}{2}^{th}
6 min read
Protection of the Central Nervous System
Control is characterized as the force of limiting and managing by which a cycle can be begun, directed in speed to accelerate or dial back or stop totally. Coordination can be characterized as the cooperating of the various frameworks of a creature to deliver a suitable response to upgrades. The cerebrum is safeguarded by a hard construction in the
7 min read
Central Nervous System
The human body is a type of machine. A machine that is made of different components. Now, there should be some connection between those components. Also, there should be one who can decide on behalf of every organ. Functioning every organ & as well as monitoring them properly is not a simple task. Also, the human body should protect itself from
15+ min read
Write a short note on the Central Highlands
The Central Highlands are situated toward the north of the Narmada. It incorporates most of the Malwa level. Central Highlands covers the majority portion of the Malwa plateau. The waterways in this locale run from southwest to upper east, demonstrating the landscape's slant. The west side is more extensive, though the east side is smaller. The lev
6 min read
The central location of India at the head of the Indian Ocean is considered of great significance. Why?
India is a southwest expansion of the Asian continent. The trans-Indian ocean paths which connect the European countries in the west and east Asian countries allow an approach to the central location of India. The Deccan Plateau extends into the Indian Ocean, thereby helping India to set up close connections with west Asia, Africa, and Europe from
3 min read
Why is arithmetic mean the most popular measure of the central tendency?
Arithmetic is a branch of mathematics that consists of the study of numbers, which focuses on the properties of the traditional operations on such numbers. These operations include addition, subtraction, multiplication, division, exponentiation, and extraction of roots. Out of these, addition(+), subtraction(-), multiplication(×), and division(÷) a
6 min read
Central Dogma of Molecular Biology
The Central Dogma of molecular biology was given by Francis Crick. The Central Dogma of genetics explains how genetic information flows from DNA to RNA to proteins within living organisms. It is a framework that describes how genetic information flows within a biological system. The Central Dogma outlines the sequential steps through which genetic
9 min read
Central Tendency in Statistics- Mean, Median, Mode
Central Tendencies are the numerical values that are used to represent a large collection of numerical data. These obtained numerical values are called central or average values. A central or average value of any statistical data or series is the variable's value representative of the entire data or its associated frequency distribution. Some commo
9 min read
Central Angle of Circle Formula with Solved Examples
Central angle of Circle is the angle formed by two radii that meet at the center of the circle. This angle helps us understand the relationships between different parts of the circle. Knowing the central angle is useful in many real-life situations, such as designing circular objects and calculating distances around a circle. In this article, we wi
5 min read
Measures of Central Tendency Practice Questions
Measures of Central Tendency are statistical metrics that describe a dataset's centre point or value. They provide a summary statistic that represents the midpoint of the data distribution. The most common measures of central tendency are the mean, median, and mode. Mean FromulaThe mean is calculated by adding all the values in a dataset and dividi
6 min read
Which measure of central tendency can be determined graphically?
In statistical data, the descriptive summary of a data set is known as the central tendency. It is considered to be an indicator of the center of the data distribution. To summarise, it represents the single value of the entire distribution or a dataset. It describes the data precisely.  However, the central tendency of the data distribution does n
6 min read
Which measure of central tendency is associated with ogives?
In statistical data, the descriptive summary of a data set is known as the central tendency. It is considered to be an indicator of the center of the data distribution. To summarise, it represents the single value of the entire distribution or a dataset. It describes the data precisely.  However, the central tendency of the data distribution does n
7 min read
Measures of Central Tendency and Dispersion
Measures of central tendency and dispersion are statistical measures used to describe the characteristics of a dataset. Central tendency helps us identify a single representative value around which data tends to cluster, whereas measures of dispersion tell us how deviated data is from the central value. Measures of central tendency include mean, me
7 min read
Central Limit Theorem
The Central Limit Theorem in Statistics states that as the sample size increases and its variance is finite, then the distribution of the sample mean approaches normal distribution irrespective of the shape of the population distribution. The query that how much the sample size should increase can be answered that if the sample size is greater than
11 min read
Measures of Central Tendency in Statistics
Central Tendencies in Statistics are the numerical values that are used to represent mid-value or central value a large collection of numerical data. These obtained numerical values are called central or average values in Statistics. A central or average value of any statistical data or series is the value of that variable that is representative of
10 min read
How to find Arithmetic Mean in Central Tendency?
Answer: The following formula is used to determine the arithmetic mean Central Tendency: X = Σx/N.In layman's terms, statistics refers to the process of obtaining, classifying, examining, interpreting, and finally presenting facts in an accessible manner so that one may make an opinion and, if required, take action. Examples: A teacher gathers stud
3 min read
Data Processing| Practical Work in Geography Class 12
Geography Class 12 Notes Chapter 2 talks about Data Processing. The chapter is dedicated to discussing the different types of operations including transformation, analysis, and organizing the raw data sources into a particular useful format. The processing of data may include the collecting, processing, and sorting of those raw data in a readable f
5 min read
NCERT Solutions for Class 11 Biology Chapter 8 Cell The Unit of Life
NCERT Solutions for class 11 Chapter 8 Cell The Unit of Life: The chapter on Cell: The Unit of Life is important for students approaching the home exams. This article introduces NCERT solutions designed to help students explain the concepts of further learning and how to write to get good grades on exams. The solutions are presented in very simple
8 min read
Commercial Unit of Electrical Energy
The ability and requirement for the body to conduct labour are referred to as Energy. Energy may be found in a variety of places and in many forms. We've noticed that on food packages and ready-to-cook foods, the amount of energy provided is always stated; as energy is defined as the ability to perform labour, it must be quantified in units. Energy
7 min read
Commercial Unit of Energy
In daily life, from moving to completing a task, humans keep on getting some work done all the time. However, how to define the term 'work' in Physics? A man is walking, is this Work? Someone pushing a wall, will this be called a work done? Well, in real life, perhaps, both the examples look like the cases where some work is getting done, but in Ph
6 min read