eolas/neuron/5ce25cd2-1b2b-459a-bb58-283daadf8753/What_is_memory.md

26 lines
1 KiB
Markdown
Raw Normal View History

2024-12-09 18:34:15 +00:00
---
tags: [memory]
created: Friday, July 12, 2024
---
# What is memory ?
> A CPU is just an operator on memory. It reads its instructions and data from
> the memory and writes back out to the memory. (Ward 2021)
When a [CPU](CPU_architecture.md) executes a program, it needs a place to store
the program's **instructions** and **related data**. This is the role of memory.
The data that comprises a program is a series of bits. The basic unit of memory
storage is a **memory cell**: a circuit that can store a single bit.
2025-01-16 07:08:09 +00:00
[RAM](DRAM_and_SRAM_memory.md) memory is _volatile_ : the memory is only
2024-12-09 18:34:15 +00:00
retained whilst the computer has a power supply and is wiped when the computer
is rebooted. This contrasts with the memory of the harddisk which is
non-volatile and is retained after a reboot.
Programs that are executing are loaded into memory because the chips that
comprise memory can read and store data much faster than the harddisk. It would
be possible to run a program from the harddisk but it would be 500 - 1000 times
slower than memory.