Types of Memory
Types of Memory
Cache memory
Register memory
Secondary memory
• Secondary Memory
• We have read so far, that primary memory is volatile and
has limited capacity. So, it is important to have another
form of memory that has a larger storage capacity and
from which data and programs are not lost when the
computer is turned off. Such a type of memory is called
secondary memory. In secondary memory, programs and
data are stored. It is also called auxiliary memory. It is
different from primary memory as it is not directly
accessible through the CPU and is non-volatile.
Secondary or external storage devices have a much
larger storage capacity and the cost of secondary
memory is less as compared to primary memory.
Use of secondary memory
• Secondary memory is used for different purposes but the
main purposes of using secondary memory are:
• Permanent storage: As we know that primary memory
stores data only when the power supply is on, it loses data
when the power is off. So we need a secondary memory to
stores data permanently even if the power supply is off.
• Large Storage: Secondary memory provides large storage
space so that we can store large data like videos, images,
audios, files, etc. permanently.
• Portable: Some secondary devices are removable. So, we
can easily store or transfer data from one computer or device
to another.
Types of Secondary memory
Secondary memory is of two
•
types:
1. Fixed storage
• In secondary memory, a fixed storage is an internal media
device that is used to store data in a computer system. Fixed
storage is generally known as fixed disk drives or hard Internal view of pen drive
drives. Generally, the data of the computer system is stored
in a built-in fixed storage device. Fixed storage does not
mean that you can not remove them from the computer
system, you can remove the fixed storage device for
repairing, for the upgrade, or for maintenance, etc. with the
help of an expert or engineer.
• Types of fixed storage:
• Following are the types of fixed storage:
• Internal flash memory (rare) Hard disk drive
• SSD (solid-state disk)
• Hard disk drives (HDD) Solid state drive
• 2. Removable storage
• In secondary memory, removable storage is an external
media device that is used to store data in a computer system.
Removable storage is generally known as disks drives or
external drives. It is a storage device that can be inserted or
removed from the computer according to our requirements.
We can easily remove them from the computer system while
the computer system is running. Removable storage devices
are portable so we can easily transfer data from one
Types of removable
storage:
• Types of Removable Storage: Compact disk(CD)
• Optical discs (like CDs, DVDs,
Blu-ray discs, etc.)
• Memory cards
• Floppy disks
• Magnetic tapes Memory card
• Disk packs Floppy disk
• When CPU needs the data, first of all, it looks inside the L1 cache. If it does not
find anything in L1, it looks inside the L2 cache. If again, it does not find the data
in L2 cache, it looks into the L3 cache. If data is found in the cache memory, then
it is known as a cache hit. On the contrary, if data is not found inside the cache, it
is called a cache miss.
• If data is not available in any of the cache memories, it looks inside the Random
Access Memory (RAM). If RAM also does not have the data, then it will get that
data from the Hard Disk Drive.
• So, when a computer is started for the first time, or an application is opened for
the first time, data is not available in cache memory or in RAM. In this case, the
CPU gets the data directly from the hard disk drive. Thereafter, when you start
your computer or open an application, CPU can get that data from cache memory
or RAM.
Thank You
&
Stay Safe