Home  >  Article  >  The purpose of setting up a cache between the cpu and main memory

The purpose of setting up a cache between the cpu and main memory

王林
王林Original
2019-10-23 17:35:4115761browse

The purpose of setting up a cache between the cpu and main memory

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn