Talking about the relationship between CPU, memory and hard disk

With the development of SSD, as long as the computer freezes, people will first think that changing the SSD can upgrade the performance of the computer, but this is not always the case. Although the computer freeze is related to the solid state drive, but it has a lot to do with the CPU and the memory stick. Next, let everyone understand the relationship between the next three. The CPU is a very large-scale integrated circuit, which is the computing core and control core of a computer. Its function is mainly to interpret computer instructions and process data in computer software. The performance of a computer is largely determined by the performance of the CPU, and the performance of the CPU is mainly reflected in the speed of its running programs. Performance indicators that affect operating speed include parameters such as CPU operating frequency, Cache capacity, instruction system, and logical structure.

 

The memory is one of the important components in the computer, it is the bridge to communicate with the CPU. All programs in the computer are run in the memory, so the performance of the memory has a great impact on the computer.

 

The working relationship between CPU and memory is:

When we execute a program on the computer, the input device first issues an operation instruction to the CPU. After the CPU receives the operation instruction, the corresponding program instruction in the hard disk is directly loaded into the memory. After that, the CPU then addresses the memory. , Translate the instruction loaded into the memory, and then send the operation signal to the operation controller to realize the operation of the program or the processing of the data.

The CPU calls data from the memory, why not get it from the hard disk? This involves an issue of access speed.

Comparing the access speeds of three types of storage: hard disk, memory and high-speed storage, we find that:

The access speed of the memory is much higher than the access speed of the hard disk, and the access speed of the high-speed memory in the CPU is much higher than the access speed of the memory.

When we put the program from the hard disk to the memory, the CPU runs the program directly in the memory, which is much faster than the CPU directly runs the program on the hard disk.

many.

The memory solves the problem that part of the CPU runs too fast and the hard disk data access is too slow. Improve the operating speed of our computer.

The memory is like a "high-speed lane", and data is transmitted from the hard disk with a slower transmission speed to the CPU for processing through this high-speed lane.

In fact, memory plays two roles here:

1. Save the data read from the hard disk and provide it to the CPU

2. Save some temporary execution results of the CPU, so that the CPU can be used next time or saved to the hard disk

To summarize the relationship between the three, the CPU runs very fast, but the storage space is very small. If it is a large amount of data or a large program, it cannot run. Therefore, if the CPU receives an instruction, it runs and stores it on the hard disk. In the program, the data needs to be transmitted through the memory, which is the center, so that the processing data and the data transmission speed match. The hard disk saves data permanently, and temporarily stores it in the memory after it is taken out, because it is faster and more convenient when extracting data, and then the CPU can process the data.

 

Guess you like

Origin blog.csdn.net/cherry_vicent/article/details/108357754