Have you ever wondered how data is processed inside your computer? Have you ever wondered who is responsible for handling it or how the information appears to you in this way? .. Well, do not tire yourself too much with searching because when you finish reading this post, you will answer yourself yourself, but more than that. I will also tell you how to search. The goal of this article is to clarify the idea of the processor in your device, how it works and how it processes the data in addition to clarifying The basics of buying a processor and how to buy it. All you have to do is follow this topic.
The processor or central processing unit, or as it is known as the CPU, is considered as the brain of the computer. When you understand how the processor works, you will understand how the computer works in general. In every processor, there is a specific wire that flashes in sequence to help keep everything that happens inside the processor synchronized, this wire is called the clock, in our current process the clock is measured in GHZ, giga represents a billion and hertz symbolizes time per second in other words, the unit of computation in our current processors Reach billions of times per second, and this speed enables the processor to perform very complex operations in a short time that does not exceed a fraction of a second.
If you flip the processor, you will see many heads, which can be considered as the connection point between the processor and the motherboard to be able to send and receive data. Most of the operations that the processor performs is between it and the RAM. We will quickly touch on what random access memories contain to be able to understand the processor more clearly, and we will have another topic dedicated to talking about random access memories in a broader and detailed way, God willing.
Random access memory or RAM contains a number of addresses and against each stored address a piece of data. The processor usually requests and processes data in an orderly and consecutive manner from the memory, but in any case if the processor wants any data that was not in order, the memory sends it to him, and this is why it is called random access memory, but in the normal state it is processed in order and succession.
But how does the processor request data from the memory? ; Suppose, for example, that you run a program on your computer, then the processor sends an address to the memory (the address here contains the program information in the memory) and then gives an activation pulse or Enable and then the memory returns the data required for the processor to be processed, then the processor asks for another address and the process continues until it ends Completely processor.
But what if the processor wants to save data on the memory? In this case, the sending order differs as it sends an address and then the data to be saved and gives the memory a set pulse, then the memory replaces the content of the address with the new data. Certainly, these operations take place within fractions of a second.
The data in RAM consists of instructions, numbers, letters, or even addresses. I would not be surprised if you ask yourself how the data are addresses? Actually addresses can be stored, but these addresses are used for various other reasons, for example, if the processor adds two numbers and wants to output the output to the printer, for example, it requests the address of the printer (it is actually stored in the form of data), and the data in random access memories is stored in a decimal way (zeros and ones) ).
There is also a so-called list of instructions, of course I will not mention it in full, but these are the most common instructions:
- Load – load data from memory number for example.
- Add – Add two numbers together.
- Store – restore a number to the memory.
- Compare – compare two numbers together.
- Jump if condition – Move to a specified address if a condition is met.
- Jump – move to a specified address.
- Out & In – entering and exiting data (input from the keyboard and output is to the screen, for example)
I will explain a simple explanation of what the processor contains from the components and how the process of data processing takes place inside it. The main component, which is the leader in the processor, is called the control unit, which receives data from memory and sends addresses to it, so it can be considered the real controller of the processor. One of the basic components is the ALU arithmetic and logic unit, and this unit is tasked with performing all arithmetic and logical operations in the processor, whether it is addition, subtraction, or even comparison.
The arithmetic and logic unit has two inputs, the control unit sends the inputs to it and it performs the operations inside and gives the result, there are two types of operations, the first of which gives an output in this case it records the output in a specific piece called the recorder, the recorder is very simple work as its only task is to store data temporarily at speed Just no other.
If the operation is a logical comparison, for example, the result of the operation is another statement JUMP IF, for example here, the arithmetic and logic unit performs the output process for the control unit through the so-called flags (I will not address this topic now for its length and large ramifications, but I am ready to answer any question), Another point that I forgot to mention previously is that the recorder does not take the command from the arithmetic and logic unit, that is, it does not record before taking the Enable pulse from the control unit.
To here I think that you have become familiar with how the processor works and processes data, well this talk is good for the outcome of your information, but for those who are not interested in the hardware field or how the processor works, I will give you some advice about the things you look for when you buy a processor and how to compare the two types and choose the most suitable for you.
The processors are mainly manufactured by two big companies, Intel and AMD. The choice between them will depend on reviews of the processors on the Internet and the sites that evaluate the processors and of course before buying (I recommend searching, reading and watching reviews before purchasing any piece not only the processor).
You only need to look at two basic things before purchasing a processor:
- The number of nuclei is num. Of cores: The general rule says that the more cores there are, the stronger the processor.
- Clock speed: We talked about it previously, which is the number of operations per second and it is measured in GHZ as well, the larger the processor, the better.