Computer Memory
Computer Memory
Computer Memory
LESSON NOTE
DEFINITION: A computer memory is the storage device or location where information can be stored,
erased and retrieved. It is the physical device used to store data and programs (set of instructions)
temporarily or permanently.
TYPES OF MEMORY: There are basically two major types of memory, which includes:
1. Primary memory/main memory/internal memory
2. Secondary memory/auxiliary memory/external memory
PRIMARY MEMORY: Primary memory is the memory that can be directly accessed by the CPU,
the CPU constantly interact with it, reads instructions stored there and executes them as
required. A computer cannot run without the primary memory. The primary memory is divided
into two:
Random Access Memory (RAM): The RAM is the volatile memory that temporarily stores data
and instruction currently being used by the computer. It is called volatile because the content
of it disappears when the computer is turned off or there is loss of power supply. It is read and
write memory. It provides the data and programs to the processor so that it can process the
data on the basis of given set of instructions. It is also referred to as the working memory
because it holds only those data and instruction on which the processor is currently working on
Read Only Memory (ROM): Read Only Memory is a special type of memory which can only be
read and contents of which are not lost even when the computer is switched off or if there is a
power cut. It typically contains manufacturer’s instructions, i.e., it stores special program called
BIOS (Basic Input Output System). BIOS is the programs (set of instructions) required to start
the computer. Whenever you turn on/restart the computer, the very first program that starts is
the BIOS (stored in ROM). The job of the BIOS is to execute POST operation (Power On Self
Test). POST checks whether all the required hardware is present or not? And all the hardware
attached, is working properly or not. ROM is read only, we can only read but can not easily
change/update the contents.
DIFFERENCES BETWEEN RAM AND ROM
S/N RAM ROM
1. It is volatile (It loses data when power is It is non-volatile (retains data even when
turned off) power is off)
3. Data in RAM can be changed or deleted ROM is fixed or data cannot be modified.
4. RAM chip are bigger in size ROM chip are smaller in size
5. RAM chips are relatively expensive ROM chips are relatively less expensive
RAM stores all the applications and data ROM usually stores instructions that are
when the computer is running required for booting the computer
SECONDARY MEMORY: This is the permanent, non-volatile memory that is not directly
accessed by the processor. Before the content of the secondary memory can be used by the
processor, it must be copied into the RAM. It has the capacity to store huge amount of data.
The secondary storage is the slowest and cheapest form of memory. Examples of secondary
storage include Hard Disk (Local Disk), Optical disk (CD, DVD), Floppy Disk, USB flash drive,
memory card etc. Computer may run without secondary memory.
∙ BITS: a bit is a contraction of the word “binary digit” and is denoted with either 1 or 0. A bit is the
simplest unit of data storage.
∙ NIBBLE: a nibble is a collection of 4 bits
∙ BYTE: a byte is a collection of 8 bits arranged in a particular sequence. Each sequence represents a single
character, symbol, digit, or letter. A byte forms the basic unit that is used to measure the storage capacity of
a storage device.
∙ MEGABYTE: a megabyte is equal to 1024 kilobytes or 1048576 bytes i.e. 1024 bytes (1 million bytes
2
approximately)
∙ GIGABYTE: a gigabyte is equal to 1024 megabytes or 1073741824bytes i.e. 1024 bytes (1 billion bytes
3
approximately). Most computers today have hard disks with large capacities that are measured in gigabytes.
A GB denotes a huge storage capacity. E.g. a video film stored on a computer can occupy more than 1 GB of
space.
∙ TERABYTE: a terabyte is equal to 1024 GB or 1099511627776 bytes i.e. 1024 bytes (1 trillion bytes
4
approximately). Storage devices having capacities in terabytes are generally used by organizations that need to store
large volumes of data.
EVALUATION:
1. Change 15000 bytes into kilobytes
2. Change 7500000 bytes into megabytes
3. Change 28 gigabytes into megabytes