4. Memory (Storage)
4. Memory (Storage)
Computer memory is the storage space in the computer, where data is to be processed and
instructions required for processing are stored. A memory is just like a human brain; it is used to
store data and instructions.
Types of Memory – There are two types of memory; Primary Memory / Main Memory and
Secondary Memory.
Primary memory holds only data and instructions which the computer is currently working on. It
has a limited storage capacity and data is lost when power is switched off (i.e It is volatile).
Primary memory is divided into two subcategories;- Random Access Memory (RAM) and Read
Only Memory (ROM).
RAM stores all the applications and data when the ROM usually stores instructions that are
computer is up and running. required for starting (booting) the computer.
RAM has a larger storage capacity. ROM has a smaller storage capacity.
1
Cache memory - is a temporary storage area used to store frequently accessed data for rapid
access. Cache is a high-speed storage area that can be part of the main memory or some other
separate storage area such as a hard disk.
Buffer memory - is an area of memory used to temporarily store data while it's being moved
from one place to another. Eg. From a computer to a network printer.
The buffer is mainly found in ram and acts as an area where the CPU can store data temporarily,
for example, data meant for other output devices such as a printer mainly when the computer and
the other devices have different speeds. This way the computer can perform other tasks.
Summary:
1. Cache is a high-speed storage area while a buffer is a normal storage area on ram for temporary
storage.
2. Cache is made from static ram which is faster than the slower dynamic ram used for a buffer.
3. The buffer is mostly used for input/output processes while the cache is used during reading
and writing processes from the hard disk.
4. Cache can also be a section of the hard disk while a buffer is only a section of the ram.
5. A buffer can be used in keyboards to edit typing mistakes while the cache cannot.
2
Difference between Primary and Secondary Memory
Primary memory is internal memory. This Secondary memory is external memory. This is
is a main memory, a computer cannot auxiliary memory, a computer may run without
work without primary memory. the secondary memory.
Accessing data from primary memory is Accessing data from secondary memory is
faster since they are mostly accessed slower since they are not directly accessed by
directly by the CPU. the CPU.
Primary memory is expensive to buy than Secondary memory is cheaper to buy than
secondary memory. primary memory
Computers store information in the form of "1" and "0"s in different types of storages such as
memory, hard disk, USB drives etc. The most common digital data storage unit is byte which is
8 bits.
Bit b 0 or 1
Byte B 8 bits
3
Other data storage units include Petabyte (PB), Exabyte (EB), Zettabyte (ZB) and Yottabyte
(YB).
STORAGE DEVICES
Storage devices are needed to facilitate the process of storing data and information on permanent
basis for later use. These include devices such as Hard disc drive, CD/DVD drive, Magnetic tape
drive, etc.
A computer cannot work without primary A computer can run without the secondary
storage devices. storage devices.
They are located closer to the CPU. They are located far from the CPU.
Secondary storage media are needed to store data and information on a permanent basis for later
use. These can be categorized as Magnetic media, Optical disks and Flash memory.
1. Magnetic Media
Magnetic Media – Are used to store data in the form of a magnetic pattern on a hard disk or
series of disks.
i. Hard Disk – Fixed hard disks consists of a series of disks coated with a magnetic material and
a series of read/write heads which record data onto the surface or record it off the surface.
ii. Magnetic Tape – Stores data in a plastic, magnetic-coated tape. Magnetic tape has a huge
storage capacity and is used to back up the data stored on hard disks.
4
2. Optical Media/Disks
Optical disks are flat and circular disks on which data is stored as a serial bumps. These optical
disks are disks that are read by laser lights. The way the bumps reflect laser beam is used to read
the data off the disk. The optical disks can be used to store computer data and can be used for
backup purposes. The types of optical disks include the following;-
i. CDs (Compact Disks) – Are used to hold large files and are ideal for holding music and
animation files. (Maximum capacity 700MB)
ii. DVDs (Digital Versatile Disks) – Have much larger storage capacity (4.7 – 8.5 GB) and are
used for mainly storing films and videos.
iii. Blue Ray disk – Have a very large storage capacity (25 – 100 GB) and are used to store high
definition videos.
3. Flash Memory
i. USB (Universal Serial Bus) Flash memory stick – Also known as pen drive or memory stick,
is a storage media which consists of a printed circuit board enclosed in a plastic casing. It is
ideal for the transfer of relatively small amounts of data between computers.
ii. HD (High Definition) cards – Also known as flash memory card, is small and thin card used
for storage of digital images by digital cameras.