MAIN MEMORY
-
The main memory stores programming instructions, data and results.
-
It consists of a long list (millions and billions) of numbered locations
called memory locations.
-
Each memory location contains a string of digits of fixed length.
-
Each digit can take on the values of zero or one only;
it is called a binary digit or a bit.
-
A bit is the smallest unit of memory.
-
Typically each memory location contains 8 bits or a byte.
-
Each memory location is identified by a number called its memory address.
-
Data item (such as a large integer) too big to fit in a single byte is
stored using several adjacent bytes; this chunk of memory is still called a memory location;
the address of the first byte is used as the memory address for this chunk of memory location.
-
Coding schemes are used to interpret the strings of zeros and ones as numbers,
letters, instructions, or other types of information.
-
There are 2 types of main memory:
-
ROM - Data or instructions stored in Read-Only-Memory can be read by
the computer but cannot be re-written.
ROM is used to store vital information when a computer boots up, for example.
-
RAM - Data stored in the RAM can be immediately access in any order.
Both reading and writing are allowed (writing will over-writes previously stored data).
RAM comes in chips of different memory capacities and speeds.
Information stored in the main memory can be retrieved or re-written at incredible speeds.
Information stored is only temporary, and disappears when the power is turned off.
Compared with secondary memory, they are more expensive.