1. 随机存取存储器(RAM):
随机存取存储器 (RAM) 用于实时存储 CPU 正在使用的程序和数据。随机存取存储器上的数据可以被多次读取、写入和擦除。 RAM 是存储当前使用的数据的硬件元素。它是一种易失性存储器。两种类型的 RAM 是静态 RAM,或 (SRAM) 和动态 RAM,或 (DRAM)。
2. 缓存内存:
高速缓存是计算机中插入 CPU 和主内存之间的更小、速度更快的内存组件。为了使这种安排有效。缓存需要比主存快得多。这种方法比使用快速存储设备来实现整个主存储器更经济。
RAM 和缓存的区别:
S.No. | RAM | CACHE |
---|---|---|
1. | RAM is a volatile memory which could store the data as long as the power is supplied. | Cache is a smaller and fast memory component in the computer. |
2. | The size of ram is greater. | The size of cache memory is less. |
3. | It is expensive. | It is not expensive. |
4. | It holds programs and data that are currently executed by the CPU. | It holds frequently used data by the CPU. |
5. | It is not fastest as compared to cache. | It is faster. |
6. | Cache memory increase the accessing speed of CPU. | RAM is faster than a hard disk, floppy disk, compact disk, or just any form of secondary storage media. |
7. | CPU reads Cache Memory data before reading RAM. |
CPU reads RAM data after reading Cache Memory. |
8. | It can be internal and external both. | It is generally internal. |