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. |