Computer memory: RAM, ROM, Secondary cache
Computer Memory: RAM, ROM, Secondary Cache RAM (Random Access Memory) A volatile memory that holds data for a very short period of time (up to 8 secon...
Computer Memory: RAM, ROM, Secondary Cache RAM (Random Access Memory) A volatile memory that holds data for a very short period of time (up to 8 secon...
Computer Memory: RAM, ROM, Secondary Cache
RAM (Random Access Memory)
A volatile memory that holds data for a very short period of time (up to 8 seconds).
It is the main memory of a computer, where data is loaded and executed by the processor.
It is divided into smaller blocks called pages (typically 8 or 16 bytes).
When a program needs data, it is loaded into RAM from secondary storage (hard disk).
Once the data is in RAM, it is accessible by the processor immediately.
When a program is finished using the data, it is removed from RAM and is written back to secondary storage.
ROM (Read-Only Memory)
A non-volatile memory that holds data permanently.
It is used to store firmware, operating systems, and other permanent data.
ROM is usually soldered onto the motherboard and cannot be accessed directly by the processor.
The data in ROM is preserved even when the computer is powered off.
Secondary Cache
A memory that is faster than RAM but slower than ROM.
It is used as a cache by the processor to store frequently used data from RAM.
The secondary cache is typically divided into several levels, with the first level being the closest to the processor.
The secondary cache is constantly refreshed with data from RAM.
It is a very fast memory that can provide data much faster than RAM