The purpose of setting up a cache memory (cache) between the CPU and the main memory is:
1. Reduce the waiting time of the CPU;
2. Improve the efficiency of CPU access to main memory.
What is cache?
Cache (Cache) is a small-capacity but fast memory located between the CPU and main memory.
Function:
Since the speed of the CPU is much higher than that of the main memory, the CPU has to wait for a certain period of time to directly access data from the main memory. A part of the data that has just been used or recycled by the CPU can be directly called from the Cache when the CPU uses this part of the data again, thus reducing the waiting time of the CPU and improving the efficiency of the CPU's access to the main memory
The above is the detailed content of The purpose of setting up a cache between the cpu and main memory. For more information, please follow other related articles on the PHP Chinese website!