Random access memory (RAM) is primary memory that can only be written to or read from. It temporarily stores data and instructions currently being used by the CPU.
RAM has these characteristics:
volatile; all data stored in RAM is lost once the computer switches off
read and write; data can be read or written to
temporary storage; stores programs, data and instructions in use
fast access; CPU can access data in RAM quickly.
It’s purpose is to provide temporary storage for the data and instructions the CPU needs while executing programs.
RAM is needed because:
it temporarily stores programs and data currently being used
it allows the CPU to access the instructions and data quickly
it allows data to be changed while programs are running.
Read only memory is primary memory that cannot be written to (changed) and can only be read. They permanently store instructions needed to start up a computer.
ROM has these characteristics:
non-volatile; data stored in ROM is retained even when computer is off
read-only; data can be read from ROM, but can’t be written to/changed
permanent storage; stores instructions the computer needs to boot up
It’s purpose is to store the start-up instructions (firmware) that are needed when a computer is switched on.
ROM is needed because:
it stores the start-up instructions required when the computer turns on
it retains these instructions even when the computer is off
Magnetic storage uses platters; circular disks coated with a magnetic material. Data is stored by magnetising small regions on the surface of these platters.
The platters are divided into two structures:
tracks; concentric circular paths on the surface of a platter where data is stored
sectors; sections into which each track is divided. Each sector stores a portion of data.
Data is written using electromagnets in the read/write heads.
The platter rotates at high speed.
The read/write head moves to the correct track and sector.
An electrical current passes through an electromagnet in the write head.
This creates a magnetic field that changes the magnetisation of tiny regions on the platter.
Different magnetic orientations represent binary data (0s and 1s).
A common example of magnetic storage is a Hard Disk Drive (HDD).
Virtual memory is a memory management system that makes use of secondary storage and software to enable a computer to compensate for the shortage of actual physical RAM memory.
It allows a computer to behave as though it has more RAM than is physically installed.
It is managed automatically by the operating system (OS).
It uses secondary storage, such as an HDD, or SSD, to temporarily store data that is not currently needed in RAM.
Data is transferred between RAM and virtual memory when needed.
Virtual memory is used when RAM is full or does not have enough space for the data and instructions needed.
The OS transfers data between RAM and virtual memory in units called pages; a fixed-sized block of data transferred between RAM and virtual memory.
RAM becomes full.
The computer is running several programs, and there is insufficient RAM to hold all their data and instructions.
Data is selected.
The OS identifies pages of data that are not currently needed or have not been used recently.
Data is transferred to virtual memory.
These pages are moved from RAM into the reserved area of secondary storage.
RAM space becomes available.
The space occupied by the transferred pages can now be used by other programs of data,
Data is transferred back when needed.
When a program requires a page that is currently in virtual memory, the OS transfers it back into RAM. Other pages may need to be moved out to make room.
Cloud storage is a method of data storage where data is stored on offsite servers; the physical storage may be on hundreds of servers in many locations.
It can be accessed remotely in comparison to storing data locally.