cpu, hard disk, memory

The cpu has nothing to do with the hard disk. What you said above is not accurate because the cpu is the fastest part of the whole machine. Compared with it, the memory is like a snail. The hard disk is like a snail. the same, so there is simply no hard drive that can be as fast as a cpu.

However, using a low-speed hard disk will indeed make users have an unpleasant experience, which is mainly reflected in the response speed of switching on and off, copying and reading speed, program loading/generating file speed and system response sensitivity.

Take booting as an example. When booting, the computer actually needs to load a lot of service processes, and loading is actually transferring the data from the hard disk to the memory. For example, if you install a win7 64-bit system, regardless of third-party programs, then There are about 1.7GB of content to be transferred from the hard disk to the memory, which is really not a small thing. If the hard disk read speed is slow, and there are many programs started by third parties themselves, and the garbage cache is not cleaned up, then turn on the computer two or three times. minutes are normal. However, if the performance of the hard disk is quite good, such as using an SSD, the slowest boot speed will not exceed 30 seconds, and the better one can boot within 10 seconds, then the experience is very good

 

To explain clearly the relationship between CPU, memory, virtual memory , hard disk and their relationship with each other, it probably takes several thousand words in one chapter and several sections in a textbook. However, the characteristics of blogs determine that it cannot be "too professional", let alone write "a book from the heavens like a foot-binding cloth". Therefore, try to use the most concise and vivid description to make it clear -

     1. CPU is the central processing unit, which is the abbreviation of "Central Processing Unit" in English. The CPU fetches the instruction from the memory or cache, puts it into the instruction register, decodes the instruction and decomposes it into a series of micro-operations, and then issues various control commands to execute the series of micro-operations to complete the execution of an instruction.

    2. However, the CPU cannot directly call the system, programs and data stored on the hard disk, and must first store the relevant content of the hard disk in the memory, so that it can be read and run by the CPU. Therefore, memory (that is, physical memory, which is relative to the "external memory" of the hard disk) acts as a "transit station" between the hard disk and the CPU, which has a great impact on the running speed of the computer.

    3. When the running data exceeds the capacity of physical memory, part of the data will "overflow" by itself. At this time, the system will simulate part of the space on the hard disk as memory- virtual memory , and will temporarily not run programs or unused programs. The data is stored in this part of the space, and it is convenient to call in time when it is needed.

    4. Since the memory is stored with electricity (the data will disappear once the power is turned off), and the capacity is limited, a hard disk ( external memory ) is required to store programs or data for a long time . The hard drive also affects system speed, because the speed at which the system reads data from the hard drive and stores it in memory over the bus also affects how fast the system runs.

    ——As for the image metaphor of some online articles: "CPU is a factory, hard disk is a large warehouse, memory is a regular transit center, and virtual memory is a temporary transit center", which is roughly close to reality, but not completely accurate.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326488682&siteId=291194637