0% found this document useful (0 votes)
49 views24 pages

B.tech 3 - Coa - Unit-4 Notes PDF

Uploaded by

itzanonymity123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views24 pages

B.tech 3 - Coa - Unit-4 Notes PDF

Uploaded by

itzanonymity123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Semiconductor Memory

The silent workhorse of modern electronics, semiconductor memory stores data


and instructions and makes it possible for smartphones, computers, medical
equipment, and industrial automation to function. This little wonder, worked
with silicon and inventiveness, utilizes electrical charges to address double
data, the "1s" and "0s" that structure the language of advanced innovation.
The widespread use of semiconductor memory is fueled by its remarkable
properties:
• High Storage Density: Semiconductor memory can store a lot of
information in a little space.
• Fast Access Time: Information can be gotten rapidly from semiconductor
memory, making it appropriate for elite execution applications.
• Lower Power Consumption: reduces environmental impact, extends battery
life, and minimizes energy consumption.
• Scalability: Compared to other kinds of memory, like magnetic storage,
semiconductor memory uses less power.
What is Semiconductor Memory?
A type of electronic memory known as semiconductor memory stores digital
data by making use of semiconductor materials, most commonly silicon. Data
is stored in binary format in this memory, with "1s" and "0s" representing
electrical charges.
Semiconductor memory is a sort of computerized electronic memory that
utilizes semiconductor material, ordinarily silicon, to store and recover
advanced information. It is the essential sort of memory utilized in PCs, cell
phones, and other electronic gadgets.
Types of Semiconductor Memory
There are two types of semi conductor memory
• Random Access Memory(RAM)
• Read-Only Memory(ROM)
Random Access Memory(RAM)
It permits information to be gotten to in any request, making it appropriate for
brief capacity.
• Type: Unpredictable - information evaporates without power.
• Function: stores data for active applications on a temporary basis.
• Speed: lightning-fast access in a flash.
• Capacity: Normally more modest than ROM.
• Applications: Running projects, open documents, program tabs.

Random Access Memory(RAM)

Read Only Memory(ROM)


Information is for all time put away and can't be changed during typical
activity. It is utilized for putting away firmware and other basic information.
• Type: Non-unstable - information perseveres even without power.
• Function: provides permanent storage for essential functions.
• Speed: More slow than Smash, as information recovery isn't as incessant.
• Capacity: Variable based on device complexity.
• Applications: Firmware, the operating system, and device drivers.
Read-only memory

Working of Semiconductor Memory


Semiconductor memory stores information utilizing minuscule circuits called
memory cells. Every memory cell is comprised of semiconductors and
capacitors. The semiconductors go about as switches, controlling the
progression of power to the capacitor. The capacitor stores the electrical
charge, addressing a paired "0" or "1".
• DRAM: In DRAM, the capacitor stores the information bit as a charge.
However, the memory cell needs to be refreshed on a regular basis to
prevent data loss as this charge slowly leaks over time. Reviving
includes perusing the information from the cell, enhancing it, and
afterward composing it back to the cell.
• SRAM: In SRAM, the information bit is put away as a lock circuit shaped by
two semiconductors. This circuit doesn't need to be refreshed and can
keep the integrity of the data as long as there is power.
• Flash Memory: Streak memory utilizes an alternate innovation called
drifting entryway semiconductors. The memory can be erased and
reprogrammed electrically thanks to these transistors' additional gate,
which can be used to trap or release electrons.
Examples of Semiconductor Memory
Dynamic Random Access Memory (DRAM):It is commonly used in
computers for temporary data storage.
Static Random Access Memory (SRAM):Used for excessive-velocity
information storage, which include caches in processors.
Flash Memory: Used for permanent garage of statistics, which includes in
USB drives and strong-country drives (SSDs).
Memory Controller & Interfaces
Memory controller is answerable for dealing with the correspondence between
the central processor and the memory. It takes directions from the computer
processor and sends them to the fitting memory area. Additionally, the
controller is in charge of DRAM refresh cycles as well as flash memory erase
and write operations.
Different points of interaction are utilized to interface the memory to the
computer processor and different parts. DDR (Double Data Rate), SDR (Single
Data Rate), and PCIe (Peripheral Component Interconnect Express) are
examples of common interfaces.
Advantages of Semiconductor Memory
• High Speed: Fast data retrieval from semiconductor memory enables
responsive performance and smooth operation. Applications like
gaming, real-time video, and online transaction all depend on this.
• Low power consumption: Compared to other types of memory, such as
magnetic storage, semiconductor memory is very energy efficient. This
is important for laptops and mobile devices, as it extends battery life.
• High storage density: Semiconductor memory can pack an enormous
measure of information into a minuscule space. Because of this, it is
ideal for high-performance computing systems and portable devices like
smartphones and tablets where space is at a premium.
• Scalability: Semiconductor memory innovation can be effortlessly scaled to
satisfy the rising needs of registering. This indicates that the capacity of
semiconductor memory chips will also increase in tandem with our
demand for data storage.
• Non-volatile(except for RAM): Non-volatile semiconductor memory, such
as read-only memory (ROM) and flash memory, stores data even when
the power is turned off. Because of this, they are excellent for storing
long-term data like operating systems and firmware.
Disadvantages of Semiconductor Memory
• Volatile(for RAM): When the power is turned off, data stored in traditional
RAM are lost. This can be risky on the off chance that you are chipping
away at something significant and the power goes out of the blue.
• Can be much expensive: When compared to other types of storage, such as
hard disk drives, high-performance or large-capacity semiconductor
memory can be expensive.
• Limited lifespan(for Flash memory): Flash memory has a set number of
compose cycles before it breaks down. As a result, flash memory
devices will eventually require replacement.
• Security issues: Semiconductor memory can be helpless against information
breaks and hacking. This is due to the fact that the data is stored
electronically and can be accessed in the event that the device is hacked.
• Effect on the Environment: The process of manufacturing semiconductor
memory chips can be resource-intensive and harmful to the
environment. However, efforts are being made to develop production
methods that are more environmentally friendly.
Applications of Semiconductor Memory
Semiconductor memory is used in a wide variety of applications, including:
• Digital Cameras: Used for storing photographs and recordings.
• Smartphones: Used for storing applications, music, photos and other
valuable information.
• Computers: Used for storing program instruction and working data.
• USB drivers: Used for storing potable data storage.
• Solid state drive (SSD): Used for high-performance storage in computers.
MP3 Player: Used to store music.

What is Associative Memory?


The time required to find an object stored in memory can be significantly
reduced if the stored data can be identified by the content of the data for its
own use rather than by access. A memory unit accessed by a material is
known as an Associative Memory associative memory or a content
addressable memory (CAM). This type of memory is accessed simultaneously
and in parallel based on the data content rather than the specific address or
location. if a word is written in associative memory, no address is given.
Memory is capable of finding empty unused space to store the word, or part
of the word specified. memory detects all words that match the specified
content and marks them for reading.
Advantages of Associative Memory
 Since content-based searching is possible, fast data retrieval is made
possible.
 Most commonly employed in routers and network switches since high
performance is crucial in them.
Disadvantages of Associative Memory
 Cost is high when compared to other conventional memory types.
 Takes more power consumption as compared to PFI, because of its
parallel search nature.
What is Cache Memory?
If the active part of the program and data can be kept in fast memory, the total
execution time can be reduced significantly. Such memory is known as cache
memory, which is inserted between the CPU and the main memory. To make
this arrangement effective. The cache needs to be much faster than
main memory. This approach is more economical than the use of fast memory
devices to implement the entire main memory.
Advantages of Cache Memory
 Its usage entails that a computer spends much lesser time to access data
than when it accesses data in RAM directly.
 It is advantageous in enhancing the CPU performance outcome since it
can store most frequently used data and instructions.
Disadvantages of Cache Memory
 Mainly confined in size compared to the main memory and using it can be
a problem if its size is restricted.
 Lower density than main memory and hence cost higher per bit.
Differences Between Associative and Cache Memory

S.
No. Associative Memory Cache Memory

A memory unit access by content A fast and small memory is


1
is called associative memory. called cache memory.

It reduces the time required to find It reduces the average memory


2
the item stored in memory. access time.

Here, data are accessed by its


3 Here data accessed by its content.
address.
S.
No. Associative Memory Cache Memory

It is used where search time is It is used when particular group


4
very short. of data is accessed repeatedly.

Its basic characteristic is its logic Its basic characteristic is its fast
5
circuit for matching its content. access.

It is not as expensive as cache It is expensive as compared to


6
memory. associative memory.

It is suitable for parallel data It is useful in increasing the


7
search mechanism. efficiency of data retrieval.

What is Virtual Memory?


Virtual memory is a memory management technique used by operating systems
to give the appearance of a large, continuous block of memory to applications,
even if the physical memory (RAM) is limited. It allows the system to
compensate for physical memory shortages, enabling larger applications to run
on systems with less RAM.
A memory hierarchy, consisting of a computer system’s memory and a disk,
enables a process to operate with only some portions of its address space in
memory. A virtual memory is what its name indicates- it is an illusion of a
memory that is larger than the real memory. We refer to the software
component of virtual memory as a virtual memory manager. The basis of
virtual memory is the noncontiguous memory allocation model. The virtual
memory manager removes some components from memory to make room for
other components.
The size of virtual storage is limited by the addressing scheme of the computer
system and the amount of secondary memory available not by the actual
number of main storage locations.
The History of Virtual Memory
Before virtual memory, computers used RAM and secondary memory for data
storage. Early computers used magnetic core in place of main memory and
magnetic drums in place of secondary memory. In the 1940s and 1950s,
computer memory was very expensive and limited in size. As programs
became larger and more complex, developers had to worry that their programs
might use up all the available memory and cause the computer to run out of
space to work.
In those early days, if program was larger than available space then
programmers use the concept of overlaying. If some portion of the code that is
not currently used move to overlying if needed it back overwritten to memory
this cause extensive programming. This is the reason for developing virtual
memory.
In 1956, German physicist Fritz-Rudolf Güntsch develop virtual memory.
The first real example of a virtual memory system was created at the University
of Manchester in England while developing the Atlas computer. This system
used a method called paging, which allowed virtual addresses (used by
programs) to be mapped to the computer’s main memory. The Atlas computer
was built in 1959 and started working in 1962.
The first computer with virtual memory was released by Burroughs Corp in
1961. This version of virtual memory do not using paging it oppose paging but
support segmentation.
How Virtual Memory Works?
Virtual Memory is a technique that is implemented using both hardware and
software. It maps memory addresses used by a program, called virtual
addresses, into physical addresses in computer memory.
All memory references within a process are logical addresses that are
dynamically translated into physical addresses at run time. This means
that a process can be swapped in and out of the main memory such that
it occupies different places in the main memory at different times during
the course of execution.
A process may be broken into a number of pieces and these pieces need not
be continuously located in the main memory during execution. The
combination of dynamic run-time address translation and the use of a
page or segment table permits this.
If these characteristics are present then, it is not necessary that all the pages or
segments are present in the main memory during execution. This means that
the required pages need to be loaded into memory whenever required. Virtual
memory is implemented using Demand Paging or Demand Segmentation.
Types of Virtual Memory
In a computer, virtual memory is managed by the Memory Management Unit
(MMU), which is often built into the CPU. The CPU generates virtual
addresses that the MMU translates into physical addresses.
There are two main types of virtual memory:
• Paging
• Segmentation
Paging
Paging divides memory into small fixed-size blocks called pages. When the
computer runs out of RAM, pages that aren’t currently in use are moved to the
hard drive, into an area called a swap file. The swap file acts as an extension of
RAM. When a page is needed again, it is swapped back into RAM, a process
known as page swapping. This ensures that the operating system (OS) and
applications have enough memory to run.
Demand Paging: The process of loading the page into memory on demand
(whenever a page fault occurs) is known as demand paging. The process
includes the following steps are as follows:

Demand Paging
• If the CPU tries to refer to a page that is currently not available in the main
memory, it generates an interrupt indicating a memory access fault.
• The OS puts the interrupted process in a blocking state. For the execution to
proceed the OS must bring the required page into the memory.
• The OS will search for the required page in the logical address space.
• The required page will be brought from logical address space to physical
address space. The page replacement algorithms are used for the
decision-making of replacing the page in physical address space.
• The page table will be updated accordingly.
• The signal will be sent to the CPU to continue the program execution and it
will place the process back into the ready state.
Hence whenever a page fault occurs these steps are followed by the operating
system and the required page is brought into memory.
What is Page Fault Service Time?
The time taken to service the page fault is called page fault service time. The
page fault service time includes the time taken to perform all the above six
steps.
Let Main memory access time is: m
Page fault service time is: s
Page fault rate is : p
Then, Effective memory access time = (p*s) + (1-p)*m
Segmentation
Segmentation divides virtual memory into segments of different sizes.
Segments that aren’t currently needed can be moved to the hard drive. The
system uses a segment table to keep track of each segment’s status, including
whether it’s in memory, if it’s been modified, and its physical address.
Segments are mapped into a process’s address space only when needed.
Combining Paging and Segmentation
Sometimes, both paging and segmentation are used together. In this case,
memory is divided into pages, and segments are made up of multiple pages.
The virtual address includes both a segment number and a page number.

Virtual Memory vs Physical Memory


Feature Virtual Memory Physical Memory (RAM)

An abstraction that The actual hardware (RAM)


extends the available that stores data and
Definition
memory by using disk instructions currently being
storage used by the CPU

On the hard drive or On the computer’s


Location
SSD motherboard

Slower (due to disk I/O Faster (accessed directly by


Speed
operations) the CPU)

Larger, limited by disk Smaller, limited by the amount


Capacity
space of RAM installed

Lower (cost of additional


Cost Higher (cost of RAM modules)
disk storage)

Data Indirect (via paging and Direct (CPU can access data
Access swapping) directly)

Non-volatile (data Volatile (data is lost when


Volatility
persists on disk) power is off)

What is Swapping?
Swapping is a process out means removing all of its pages from memory, or
marking them so that they will be removed by the normal page replacement
process. Suspending a process ensures that it is not runnable while it is
swapped out. At some later time, the system swaps back the process from the
secondary storage to the main memory. When a process is busy swapping
pages in and out then this situation is called thrashing.

Swappinghierar
What is Thrashing?
At any given time, only a few pages of any process are in the main memory,
and therefore more processes can be maintained in memory. Furthermore, time
is saved because unused pages are not swapped in and out of memory.
However, the OS must be clever about how it manages this scheme. In the
steady state practically, all of the main memory will be occupied with process
pages, so that the processor and OS have direct access to as many processes as
possible. Thus when the OS brings one page in, it must throw another out. If it
throws out a page just before it is used, then it will just have to get that page
again almost immediately. Too much of this leads to a condition called
Thrashing. The system spends most of its time swapping pages rather than
executing instructions. So a good page replacement algorithm is required.
In the given diagram, the initial degree of multiprogramming up to some extent
of point(lambda), the CPU utilization is very high and the system resources are
utilized 100%. But if we further increase the degree of multiprogramming the
CPU utilization will drastically fall down and the system will spend more time
only on the page replacement and the time taken to complete the execution of
the process will increase. This situation in the system is called thrashing.
Causes of Thrashing
Thrashing occurs in a computer system when the CPU spends more time
swapping pages in and out of memory than executing actual processes. This
happens when there is insufficient physical memory, causing frequent page
faults and excessive paging activity. Thrashing reduces system performance
and makes processes run very slowly. There are many cause of thrashing as
discussed below.
1. High Degree of Multiprogramming: If the number of processes keeps on
increasing in the memory then the number of frames allocated to each process
will be decreased. So, fewer frames will be available for each process. Due to
this, a page fault will occur more frequently and more CPU time will be wasted
in just swapping in and out of pages and the utilization will keep on
decreasing.
For example:
Let free frames = 400
Case 1: Number of processes = 100
Then, each process will get 4 frames.
Case 2: Number of processes = 400
Each process will get 1 frame.
Case 2 is a condition of thrashing, as the number of processes is increased,
frames per process are decreased. Hence CPU time will be consumed just by
swapping pages.
2. Lacks of Frames: If a process has fewer frames then fewer pages of that
process will be able to reside in memory and hence more frequent swapping in
and out will be required. This may lead to thrashing. Hence a sufficient amount
of frames must be allocated to each process in order to prevent thrashing.
Recovery of Thrashing
Do not allow the system to go into thrashing by instructing the long-term
scheduler not to bring the processes into memory after the threshold.
If the system is already thrashing then instruct the mid-term scheduler to
suspend some of the processes so that we can recover the system from
thrashing.
Performance in Virtual Memory
• Let p be the page fault rate( 0 <= p <= 1).
• if p = 0 no page faults
• if p =1, every reference is a fault.
Effective access time (EAT) = (1-p)* Memory Access Time + p * Page fault
time.
Page fault time = page fault overhead + swap out + swap in +restart overhead
The performance of a virtual memory management system depends on the total
number of page faults, which depend on “paging policies” and “frame
allocation“
Frame Allocation
A number of frames allocated to each process in either static or dynamic.
• Static Allocation: The number of frame allocations to a process is fixed.
• Dynamic Allocation: The number of frames allocated to a process changes.
Paging Policies
• Fetch Policy: It decides when a page should be loaded into memory.
• Replacement Policy: It decides which page in memory should be replaced.
• Placement Policy: It decides where in memory should a page be loaded.
What are the Applications of Virtual memory?
Virtual memory has the following important characteristics that increase the
capabilities of the computer system. The following are five significant
characteristics of Lean.
• Increased Effective Memory: One major practical application of virtual
memory is, virtual memory enables a computer to have more memory
than the physical memory using the disk space. This allows for the
running of larger applications and numerous programs at one time while
not necessarily needing an equivalent amount of DRAM.
• Memory Isolation: Virtual memory allocates a unique address space to each
process and that also plays a role in process segmentation. Such
separation increases safety and reliability based on the fact that one
process cannot interact with and or modify another’s memory space
through a mistake, or even a deliberate act of vandalism.
• Efficient Memory Management: Virtual memory also helps in better
utilization of the physical memories through methods that include
paging and segmentation. It can transfer some of the memory pages that
are not frequently used to disk allowing RAM to be used by active
processes when required in a way that assists in efficient use of memory
as well as system performance.
• Simplified Program Development: For case of programmers, they don’t
have to consider physical memory available in a system in case of
having virtual memory. They can program ‘as if’ there is one big block
of memory and this makes the programming easier and more efficient in
delivering more complex applications.
How to Manage Virtual Memory?
Here are 5 key points on how to manage virtual memory:
1. Adjust the Page File Size
• Automatic Management: All contemporary operating systems including
Windows contain the auto-configuration option for the size of the
empirical page file. But depending on the size of the RAM, they are set
automatically, although the user can manually adjust the page file size if
required.
• Manual Configuration: For tuned up users, the setting of the custom size
can sometimes boost up the performance of the system. The initial size
is usually advised to be set to the minimum value of 1. To set the size of
the swap space equal to 5 times the amount of physical RAM and the
maximum size 3 times the physical RAM.
2. Place the Page File on a Fast Drive
• SSD Placement: If this is feasible, the page file should be stored in the SSD
instead of the HDD as a storage device. It has better read and write
times, and the virtual memory may prove benefecial in an SSD.
• Separate Drive: Regarding systems having multiple drives involved, the
page file needs to be placed on a different drive than the os and that
shall in turn improve its performance.
3. Monitor and Optimize Usage
• Performance Monitoring: Employ the software tools used in monitoring the
performance of the system in tracking the amounts of virtual memory.
High page file usage may signify that there is a lack of physical RAM or
that virtual memory needs a change of settings or addition in physical
RAM.
• Regular Maintenance: Make sure there is no toolbar or other application
running in the background, take time and uninstall all the tool bars to
free virtual memory.
4. Disable Virtual Memory for SSD
• Sufficient RAM: If for instance your system has a big physical memory, for
example 16GB and above then it would be advised to freeze the page
file in order to minimize SSD usage. But it should be done, in my
opinion, carefully and only if the additional signals that one decides to
feed into his applications should not likely use all the available RAM.
5. Optimize System Settings
• System Configuration: Change some general properties of the system
concerning virtual memory efficiency. This also involves enabling
additional control options in Windows such as adjusting additional
system setting option on the operating system, or using other options in
different operating systems such as Linux that provides different tools
and commands to help in adjusting how virtual memory is utilized.
• Regular Updates: Ensure that your drivers are run in their newest version
because new releases contain some enhancements and issues regarding
memory management.
What are the Benifits of Using Virtual Memory?
• Many processes maintained in the main memory.
• A process larger than the main memory can be executed because of demand
paging. The OS itself loads pages of a process in the main memory as
required.
• It allows greater multiprogramming levels by using less of the available
(primary) memory for each process.
• It has twice the capacity for addresses as main memory.
• It makes it possible to run more applications at once.
• Users are spared from having to add memory modules when RAM space
runs out, and applications are liberated from shared memory
management.
• When only a portion of a program is required for execution, speed has
increased.
• Memory isolation has increased security.
• It makes it possible for several larger applications to run at once.
• Memory allocation is comparatively cheap.
• It doesn’t require outside fragmentation.
• It is efficient to manage logical partition workloads using the CPU.
• Automatic data movement is possible.
What are the Limitation of Virtual Memory?
• It can slow down the system performance, as data needs to be constantly
transferred between the physical memory and the hard disk.
• It can increase the risk of data loss or corruption, as data can be lost if the
hard disk fails or if there is a power outage while data is being
transferred to or from the hard disk.
It can increase the complexity of the memory management system, as the
operating system needs to manage both physical and virtual memory.
Secondary Memory
In a computer, memory refers to the physical devices that are used to store
programs or data on a temporary or permanent basis. It is a group of registers.
Memory are of two types (i) primary memory, (ii) secondary memory. Primary
memory is made up of semiconductors, It is also divided into two types, Read-
Only Memory (ROM) and Random Access Memory (RAM). Secondary
memory is a physical device for the permanent storage of programs and
data(Hard disk, Compact disc, Flash drive, etc.).
Secondary memory is a type of computer memory that is used to store data and
programs that can be accessed or retrieved even after the computer is turned
off. Unlike primary memory, which is volatile and temporary, secondary
memory is non-volatile and can store data and programs for extended periods
of time.
• Some examples of secondary memory include hard disk drives (HDDs),
solid-state drives (SSDs), optical discs (such as CDs and DVDs), and
flash memory (such as USB drives and memory cards). These storage
devices provide a much larger capacity than primary memory and are
typically used to store large amounts of data, such as operating systems,
application programs, media files, and other types of digital content.
• Secondary memory can be classified into two types: magnetic storage and
solid-state storage. Magnetic storage devices, such as hard disk drives
and magnetic tapes, use magnetic fields to store and retrieve data. Solid-
state storage devices, such as solid-state drives and flash memory, use
semiconductor-based memory chips to store data.
• One of the main advantages of secondary memory is its non-volatile nature,
which means that data and programs stored on secondary memory can
be accessed even after the computer is turned off. Additionally,
secondary memory devices provide a large storage capacity, making it
possible to store large amounts of data and programs.
However, there are also some disadvantages to secondary memory, such as
slower access times and lower read/write speeds compared to primary memory.
Additionally, secondary memory devices are often more prone to mechanical
failures and data corruption, which can result in data loss.
Overall, secondary memory plays an important role in modern computing
systems and is essential for storing large amounts of data and programs.

Primary Memory
Primary memory is made up of semiconductors and it is the main memory of
the computer system. It is generally used to store data or information on which
the computer is currently working, so we can say that it is used to store data
temporarily. Data or information is lost when the systems are off. It is also
divided into two types:
(i). Read-Only Memory (ROM)
(ii). Random Access Memory (RAM).
1. Random Access Memory: Primary memory is also called internal memory.
This is the main area in a computer where data, instructions, and information
are stored. Any storage location in this memory can be directly accessed by the
Central Processing Unit. As the CPU can randomly access any storage location
in this memory, it is also called Random Access Memory or RAM. The CPU
can access data from RAM as long as the computer is switched on. As soon as
the power to the computer is switched off, the stored data and instructions
disappear from RAM. Such type of memory is known as volatile memory.
RAM is also called read/write memory.
2. Read-Only Memory: Read-Only Memory (ROM) is a type of primary
memory from which information can only be read. So it is also known as Read-
Only Memory. ROM can be directly accessed by the Central Processing Unit.
But, the data and instructions stored in ROM are retained even when the
computer is switched off OR we can say it holds the data after being switched
off. Such type of memory is known as non-volatile 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 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)
• SSD (solid-state disk)
• Hard disk drives (HDD)
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
computer to another. Also, removable storage devices provide the fast data
transfer rates associated with storage area networks (SANs).
Types of Removable Storage:
• Optical discs (like CDs, DVDs, Blu-ray discs, etc.)
• Memory cards
• Floppy disks
• Magnetic tapes
• Disk packs
• Paper storage (like punched tapes, punched cards, etc.)
Secondary memory devices
Following are the commonly used secondary memory devices are:
1. Floppy Disk: A floppy disk consists of a magnetic disc in a square plastic
case. It is used to store data and to transfer data from one device to another
device. Floppy disks are available in two sizes (a) Size: 3.5 inches, the Storage
capacity of 1.44 MB (b) Size: 5.25 inches, the Storage capacity of 1.2 MB. To
use a floppy disk, our computer needs to have a floppy disk drive. This storage
device becomes obsolete now and has been replaced by CDs, DVDs, and flash
drives.
2. Compact Disc: A Compact Disc (CD) is a commonly used secondary
storage device. It contains tracks and sectors on its surface. Its shape is circular
and is made up of polycarbonate plastic. The storage capacity of CD is up to
700 MB of data. A CD may also be called a CD-ROM (Compact Disc Read-
Only Memory), in this computers can read the data present in a CD-ROM, but
cannot write new data onto it. For a CD-ROM, we require a CD-ROM. CD is
of two types:
• CD-R (compact disc recordable): Once the data has been written onto it
cannot be erased, it can only be read.
• CD-RW (compact disc rewritable): It is a special type of CD in which data
can be erased and rewritten as many times as we want. It is also called
an erasable CD.
3. Digital Versatile Disc: A Digital Versatile Disc also known as DVD it is
looks just like a CD, but the storage capacity is greater compared to CD, it
stores up to 4.7 GB of data. DVD-ROM drive is needed to use DVD on a
computer. The video files, like movies or video recordings, etc., are generally
stored on DVD and you can run DVD using the DVD player. DVD is of three
types:
• DVD-ROM(Digital Versatile Disc Readonly): In DVD-ROM the
manufacturer writes the data in it and the user can only read that data,
cannot write new data in it. For example movie DVD, movie DVD is
already written by the manufacturer we can only watch the movie but
we cannot write new data into it.
• DVD-R(Digital Versatile Disc Recordable): In DVD-R you can write the
data but only one time. Once the data has been written onto it cannot be
erased, it can only be read.
• DVD-RW(Digital Versatile Disc Rewritable and Erasable): It is a special
type of DVD in which data can be erased and rewritten as many times as
we want. It is also called an erasable DVD.
4. Blu-ray Disc: A Blu-ray disc looks just like a CD or a DVD but it can store
data or information up to 25 GB data. If you want to use a Blu-ray disc, you
need a Blu-ray reader. The name Blu-ray is derived from the technology that is
used to read the disc ‘Blu’ from the blue-violet laser and ‘ray’ from an optical
ray.
5. Hard Disk: A hard disk is a part of a unit called a hard disk drive. It is used
to storing a large amount of data. Hard disks or hard disk drives come in
different storage capacities.(like 256 GB, 500 GB, 1 TB, and 2 TB, etc.). It is
created using the collection of discs known as platters. The platters are placed
one below the other. They are coated with magnetic material. Each platter
consists of a number of invisible circles and each circle having the same centre
called tracks. Hard disk is of two types (i) Internal hard disk (ii) External hard
disk.
6. Flash Drive: A flash drive or pen drive comes in various storage capacities,
such as 1 GB, 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, 64 GB, up to 1 TB. A flash
drive is used to transfer and store data. To use a flash drive, we need to plug it
into a USB port on a computer. As a flash drive is easy to use and compact in
size, Nowadays it is very popular.
7. Solid-state disk: It is also known as SDD. It is a non-volatile storage device
that is used to store and access data. It is faster, does noiseless
operations(because it does not contain any moving parts like the hard disk),
consumes less power, etc. It is a great replacement for standard hard drives in
computers and laptops if the price is low and it is also suitable for tablets,
notebooks, etc because they do not require large storage.
8. SD Card: It is known as a Secure Digital Card. It is generally used in
portable devices like mobile phones, cameras, etc., to store data. It is available
in different sizes like 1 GB, 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, 64 GB, etc. To
view the data stored in the SD card you can remove them from the device and
insert them into a computer with help of a card reader. The data stores in the
SD card is stored in memory chips(present in the SD Card) and it does not
contain any moving parts like the hard disk.

You might also like