Explainer · 3.3.1
讲解 · 3.3.1
Primary storage
主存储
Primary storage is the memory the CPU can access directly. It holds RAM and ROM.
主存储是 CPU 能够直接访问的内存,包括 RAM 和 ROM。
| RAM (random access memory) | RAM(随机存取存储器) | ROM (read only memory) | ROM(只读存储器) | ||
|---|---|---|---|---|---|
| Volatile? | 是否易失? | Volatile: contents are lost when the power goes off | 易失性:断电后内容会丢失 | Non-volatile: contents stay when the power goes off | 非易失性:断电后内容仍会保留 |
| Can it be changed? | 能否被改写? | can be read from and written to | 可读可写 | can only be read; contents are fixed | 只能读取;内容固定不变 |
| What it holds | 存放的内容 | the programs, the data and the parts of the operating system that are running right now | 当前正在运行的程序、数据以及操作系统的相关部分 | the start-up instructions (the bootstrap / BIOS) the computer needs the moment it is switched on | 计算机开机瞬间所需的启动指令(引导程序 / BIOS) |
A computer needs both. Without ROM there are no instructions to start up with (RAM is empty at power-on). Without RAM there is nowhere to hold the running programs and data. The one-line difference: RAM is volatile and can be changed; ROM is non-volatile and cannot.
计算机两者都需要。没有 ROM,就没有开机所需的指令(开机时 RAM 是空的)。没有 RAM,就无处存放正在运行的程序和数据。一句话概括两者的区别:RAM 是易失性的且可被改写;ROM 是非易失性的且不能被改写。