📜  主内存和辅助内存的区别

📅  最后修改于: 2021-09-13 03:03:49             🧑  作者: Mango

计算机存储器存储数据和指令。内存系统可以分为4类:

  • CPU寄存器
  • 高速缓存存储器
  • 主/主内存
  • 辅助内存/大容量存储

它们可以以分层形式表示为:

1.主/主内存:
主内存是 CPU 可直接访问的计算机内存。它由 DRAM 组成,为处理器提供实际工作空间。它保存处理器当前正在处理的数据和指令。

2. 辅助内存/大容量存储:
二级内存的内容首先传输到一级内存,然后被处理器访问,这是因为处理器不直接与二级内存交互。

现在,让我们看看主内存和辅助内存之间的区别:

Sr.No. Primary memory Secondary memory
1. Primary memory is temporary. Secondary memory is permanent.
2. Primary memory is directly accessible by Processor/CPU. Secondary memory is not directly accessible by the CPU.
3. Nature of Parts of Primary memory varies, RAM- volatile in nature. ROM- Non-volatile. It’s always Non-volatile in nature.
4. Primary memory devices are more expensive than secondary storage devices. Secondary memory devices are less expensive when compared to primary memory devices.
5. The memory devices used for primary memory are semiconductor memories. The secondary memory devices are magnetic and optical memories.
6. Primary memory is also known as Main memory or Internal memory. Secondary memory is also known as External memory or Auxiliary memory.
7. Examples: RAM, ROM, Cache memory, PROM, EPROM, Registers, etc. Examples: Hard Disk, Floppy Disk, Magnetic Tapes, etc.