Home > Common Problem > body text

What is the function of cache memory

王林
Release: 2020-07-09 15:26:38
Original
32059 people have browsed it

The function of the cache memory is: after adding the cache memory between the CPU and the memory, the CPU can directly access data from the memory, thus reducing the time and improving the running speed of the system. Cache memory consists of Cache memory bank, address translation component, and replacement component.

What is the function of cache memory

Function:

When the CPU in a higher-end computer accesses data from the memory, the memory speed cannot keep up with the high speed of the CPU. And make it wait, thus wasting precious time of the CPU. After adding a cache memory between the CPU and the memory, the CPU can directly access data, thereby reducing time and improving the running speed of the system.

Related introduction:

Cache memory is a first-level memory that exists between the main memory and the CPU. It is composed of static memory chips (SRAM). The capacity is relatively small but the speed is higher than the main memory. Much, much closer to CPU speed.

In the hierarchy of computer storage systems, it is a high-speed, small-capacity memory between the central processing unit and the main memory. Together with the main memory, it forms a first-level memory. Scheduling and transfer of information between cache and main memory is automated by hardware.

Mainly consists of three parts:

Cache storage body: stores instructions and data blocks transferred from main memory.

Address translation component: Create a directory table to convert the main memory address to the cache address.

Replacement component: When the cache is full, data blocks are replaced according to a certain strategy and the address translation component is modified.

The above is the detailed content of What is the function of cache memory. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template