can be accessed directly. Internal memory, also called memory, is the bridge between external memory and the CPU. All programs in the computer run in memory. The function of memory is to temporarily store calculation data in the CPU and data exchanged with external memories such as hard disks. As long as the computer is running, the operating system will transfer the data that needs to be calculated from the memory to the CPU for calculation; when the calculation is completed, the CPU will transmit the results. The operation of the memory also determines the stable operation of the computer.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
CPU consists of arithmetic unit and controller. The CPU can only directly access data stored in memory. Data in external memory can only be accessed and processed by the central processor after being transferred into memory.
Internal memory, also known as memory, is one of the important components in the computer. It is the bridge between external memory and the CPU. All programs in the computer run in the memory.
The performance of memory has a great impact on the computer. The function of memory is to temporarily store calculation data in the CPU and data exchanged with external memories such as hard disks.
As long as the computer is running, the operating system will transfer the data that needs to be calculated from the memory to the CPU for calculation. When the operation is completed, the CPU transmits the results, and the operation of the memory also determines the stable operation of the computer.
Explanation: The reason why the CPU cannot directly access the external memory
Because the CPU is fast and the external memory is slow, if Let the CPU access external memory, and the CPU will waste a lot of time waiting for the return data from the external memory. The read and write speed of memory is much higher than that of external memory, so data on storage media such as hard disks must be transferred to memory before it can be accessed.
The difference between internal memory and external memory
1. The internal memory is a temporary storage area when executing the program. All data is lost; external memory is used to store original data and operation results, which need to be saved for a long time. The data will not be lost after power failure.
2. The most prominent feature of internal memory is fast access speed, but small capacity and expensive price; the characteristics of external memory are large capacity, low price, but slow access speed.
3. Internal memory is used to store programs and data that are needed immediately; external memory is used to store programs and data that are not used temporarily.
Expand knowledge:
There are three indicators to measure memory: capacity, speed and price/bit. Therefore, the price per bit of high-speed memory is relatively high, so the capacity cannot be too large, so it must be divided into memory and external memory. The information being used is placed in the high-speed memory, and the temporarily unused information is placed in the external memory. But they are all computer storage systems, and they form a storage hierarchy. Overall, the computer has a speed similar to that of memory and a capacity similar to that of external memory.
For more related knowledge, please visit theFAQcolumn!
The above is the detailed content of Can the CPU directly access data in the internal memory?. For more information, please follow other related articles on the PHP Chinese website!