Chapter - 4 Computer Memory Notes English
Chapter - 4 Computer Memory Notes English
Memory Hierarchy
The hierarchical arrangement of storage in current computer architectures is called the memory
hierarchy. The computer uses a hierarchy of memory that is organised in a manner to enable the
fastest speed and largest capacity of memory as shown in figure.
Parameters of Memory
Some related parameters of memory are as follow
(i) Storage Capacity It is representative of the size of memory. The capacity of internal memory and main
memory can be expressed in terms of number of words or bytes.
(ii) Access Modes A memory is comprised of various memory locations. The information from these
memory locations can be accessed randomly, sequentially and directly.
(iii) Access Time The access time is the time required between the desired modes for a read or write
operation till the data is made available or written at the desired location.
(iv) Physical Characteristics In this respect, the devices can be categorised into four main categories as
electronic, magnetic, mechanical and optical.
(v) Permanence of Storage Its permanence is high for future use in magnetic materials.
Types of Memory
In general, the memory is classified into two categories as follows
(a) Primary memory or Main memory/Internal Memory eg :- RAM , ROM and Cache Memory.
(b) Secondary memory or Auxiliary memory eg :- Magetic Disk, optical Disk and Flash memory
Primary Memory
• The memory unit that communicates directly with the CPU is called main memory or the internal
memory. (close to CPU)
• It is made up of memory cells where each cell is composed of one capacitor (Electric component)
and one transistor (to speed up an electronic device).
• DRAM must be refreshed continually to store information.
• DRAM is slower, less expensive and occupies less space on the computer's motherboard.
Cache Memory
It is a storage buffer that stores the data winch is used more often, temporarily and makes them available to
CPU at a fast rate. Cache memory is a very high speed memory placed in between RAM and CPU. It
increases the speed of processing. Cache memory is very expensive, so it is smaller in size. Generally,
computers have cache memory, of sizes 256 KB to 2 MB.
• It is also known as non-volatile memory or permanent storage. It does not lose its content when the
power is switched OFF. ROM (Read Only Memory) has only read capability, no write capability.
• ROM can have data and instructions written to it only one time.
• Once a ROM chip is programmed at the time of manufacturing, it cannot be reprogrammed or
rewritten.
(c) Electrically Erasable Programmable ROM (EEPROM) It is similar to EPROM, but it can be erased
electrically, then rewritten electrically and the burning process is reversible by exposure to electric
pulses. It is the most flexible type of ROM, and is now commonly used for holding BIOS.
Important Facts :-
• Flash memory is a kind of semiconductor based non-volatile rewritable memory,
used in digital camera, mobile phone, printer, etc.
• Virtual memory is a technique that allows the execution of processes that are not
completely in main memory. One major advantage of this scheme is that programs
can be larger than main memory.
• Buffer is a temporary physical storage used to hold data during execution of process
from one place to another.
Secondary Memory
• This memory stores much larger amounts of data and information for extended periods of time.
• Data in secondary memory cannot be processed directly by the CPU, it must first be copied into
primary storage, i.e. RAM.
• Secondary storage is used to store data and programs when they are not being processed.
• It is also non-volatile in nature. Due to this, the data remain in the secondary storage as long as it is
not overwritten or deleted by the user. It is a permanent storage, i.e. device.
• Secondary memory devices include as follows
• It consists of a spindle that holds non-magnetic flat circular disks, called platters, which hold the
recorded data. Each platter requires two read/write heads that are used to write and read the
information from a platter.
• All the read/write heads are attached to a single access arm so that they cannot move
independently.
The information is recorded in bands; each band of information is called a track. Each platter has the same
number of tracks and a track location that cuts across all platters is called a cylinder.
The tracks are divided into pie-shaped sections known as sectors.
• It is used to store data but it can store small amount of data and it is slower to access than hard
disks.
• Floppy disk round in shape and a thin plastic disk coated with iron oxide.
• Data is retrieved or recorded on the surface of the disk through a slot on the envelope.
• Floppy disk is removable from the drive.
• Floppy disk is available in three sizes; 8 inch, \[5\frac{1}{4}\] inch and \[3\frac{1}{2}\]inch.
Magnetic Tape
These tapes are made of a plastic film-type material coated with magnetic materials to store data
permanently. Data can be read as well as recorded. It is usually 12.5 mm to 25 mm wide and 500 m to 1200
m long. These can store data in a sequential manner.
Compact Disk
It is the most popular and the least expensive type of optical disk. A CD (Compact Disk) is capable of being
used as a data storage device along with storing of digital audio. The files are stored on this particular
contiguous sectors.
CDs are categorised into three main types as follow
Important Facts
• The rate at which data is written to disk or read from disk is called data transfer rate,
Root directory is the main folder of disk, it contains information about ail folders on
the disk.
Hard disk is a fixed disk. i.e. cannot be removed from the drive.
Blu-ray Disk
It is an optical disk storage medium designed to recapture the data normally in DVD format. Blu-ray disks
(BD) contain 25 GB (23.31 GB) per layer space. The name Blu-ray disk refers to the blue laser used to read
the disk, which allows information to be stored at a greater density than the longer- wavelength red laser
used in DVDs. Blu-ray can hold almost 5 times more data than a single layer DVD.
The variations in the formats are as follows
(a) BD-ROM (Read only)
(b) BD-R (Recordable)
(c) BD-RW (Rewritable)
(d) BD-RE (Rewritable)
Pen/Thumb Drive
Pen drive is also known as flash drive. A flash drive is a data storage device that consists of flash memory
(key memory) with a portable USB (Universal Serial Bus) interface. USB flash drives are typically
removable, rewritable and much smaller than a floppy disk.
Today, flash drives are available in various storage capacities as 256MB, 512MB, 1GB, 4GB, 16GB upto 64
GB. They are widely used as an easy and small medium to transfer and store the information from their
computer.
Memory Cards
These are the data storage devices in a clip shaped which can store the data in it. They are commonly used
in many electronic devices, including digital cameras, mobile phones, laptop computers.
They are small, re-recordable, easily portable and very light weighted.
Secondary Memory Device and their Storage Method and Capacity
(KB, MB, GB, TB, PB, Exa, Zetta, Yotta, Bronto, Geop)
Note Bit is the smallest memory measurement unit. Geop Byte is the highest memory measurement unit.
A Byte can represent 256 distinct value (0-255)
The Size of any word/number in a computer is measured in Bits