SlideShare a Scribd company logo
1 of 18
Introduction to Computer System
Primary Memory & Secondary Memory
Prepared By
S.K. Barnwal
Assistant Professor
Arka Jain University
Research Scholar (NIT, Jamshedpur)
Memory
Computer memory is just like a human brain used to store data and
instructions. It is the storage space in the computer, where data is to
be processed and instructions required for processing are stored. The
memory is divided into large number of small parts called cells. Each
location or cell has a unique address, which varies from zero to
memory size minus one. For example, if the computer has 64k words,
then this memory unit has 64 * 1024 = 65536 memory locations. The
address of these locations varies from 0 to 65535.
In actual memory is the most essential element of a computing system
because without it computer can’t perform simple tasks. Computer
memory is of two basic type – Primary memory(RAM and ROM) and
Secondary memory(hard drive, CD, etc.). Random Access Memory
(RAM) is primary-volatile memory and Read Only Memory (ROM)
is primary-non-volatile memory.
Memory
Memory unit is the amount of data that can be stored in the storage
unit. This storage capacity is expressed in terms of Bytes.
• Bit (Binary Digit): A binary digit is logical 0 and 1 representing a passive or an
active state of a component in an electric circuit.
• Nibble: A group of 4 bits is called nibble.
• Byte: A group of 8 bits is called byte. A byte is the smallest unit, which
can represent a data item or a character.
• Word: A computer word, like a byte, is a group of fixed number of bits
processed as a unit, which varies from computer to computer but is fixed
for each computer.
• 1 KB = 1024 Bytes
• 1 MB = 1024 KB
• 1 GB = 1024 MB
• 1 TB = 1024 GB
Memory is primarily of three types −
• Cache Memory
• Primary Memory/Main Memory
• Secondary Memory
Memory
Cache Memory: Cache memory is a very high speed semiconductor
memory which can speed up the CPU. It acts as a buffer between the
CPU and the main memory. It is used to hold those parts of data and
program which are most frequently used by the CPU. The parts of
data and programs are transferred from the disk to cache memory by
the operating system, from where the CPU can access them.
Advantages
• The advantages of cache memory are as follows −
• Cache memory is faster than main memory.
• It consumes less access time as compared to main memory.
• It stores the program that can be executed within a short period of time.
• It stores data for temporary use.
Disadvantages
• The disadvantages of cache memory are as follows −
• Cache memory has limited capacity.
• It is very expensive.
Memory
Primary Memory (Main Memory): Primary memory holds only
those data and instructions on which the computer is currently
working. It has a limited capacity and data is lost when power is
switched off. It is generally made up of semiconductor device. These
memories are not as fast as registers. The data and instruction required
to be processed resides in the main memory. It is divided into two
subcategories RAM and ROM.
Characteristics of Main Memory
• These are semiconductor memories.
• It is known as the main memory.
• Usually volatile memory.
• Data is lost in case power is switched off.
• It is the working memory of the computer.
• Faster than secondary memories.
• A computer cannot run without the primary memory.
Memory
Secondary Memory: This type of memory is also known as external
memory or non-volatile. It is slower than the main memory. These are
used for storing data/information permanently. CPU directly does not
access these memories, instead they are accessed via input-output
routines. The contents of secondary memories are first transferred to
the main memory, and then the CPU can access it. For example, disk,
CD-ROM, DVD, etc.
Characteristics of Secondary Memory
• These are magnetic and optical memories.
• It is known as the backup memory.
• It is a non-volatile memory.
• Data is permanently stored even if power is switched off.
• It is used for storage of data in a computer.
• Computer may run without the secondary memory.
• Slower than primary memories.
Memory Hierarchy
Speed Increases
Memory Space Decreases Speed Decreases
Memory Space Increases
RAM
RAM (Random Access Memory): It is the internal memory of the
CPU for storing data, program, and program result. It is a read/write
memory which stores data until the machine is working. As soon as
the machine is switched off, data is erased.
Access time in RAM is independent of the address, that is, each
storage location inside the memory is as easy to reach as other
locations and takes the same amount of time. Data in the RAM can be
accessed randomly but it is very expensive. It is volatile, data stored
in it is lost when switch off the computer or if there is a power failure.
Hence, a backup UPS (Uninterruptible Power System) is often used
with computers. RAM is small, both in terms of its physical size and
in the amount of data it can hold.
RAM is of two types −
• Static RAM (SRAM)
• Dynamic RAM (DRAM)
RAM
Static RAM (SRAM): The word static indicates that the memory
retains its contents as long as power is being supplied. However, data
is lost when the power gets down due to volatile nature. SRAM chips
use a matrix of 6-transistors and no capacitors. Transistors do not
require power to prevent leakage, so SRAM need not be refreshed on
a regular basis.
Characteristic of Static RAM
• Long life
• No need to refresh
• Faster
• Used as cache memory
• Large size
• Expensive
• High power consumption
RAM
Dynamic RAM (DRAM): It is unlike SRAM, must be
continually refreshed in order to maintain the data. This is done by
placing the memory on a refresh circuit that rewrites the data several
hundred times per second. DRAM is used for most system memory as
it is cheap and small.
Characteristics of Dynamic RAM
• Short data lifetime
• Needs to be refreshed continuously
• Slower as compared to SRAM
• Used as RAM
• Smaller in size
• Less expensive
• Less power consumption
ROM
Read Only Memory (ROM): The memory from which data can only
read but cannot write on it. This type of memory is non-volatile in
nature. The information is stored permanently in such memories
during manufacture. A ROM stores such instructions that are required
to start a computer. This operation is referred to as bootstrap. ROM
chips are not only used in the computer but also in other electronic
items like washing machine and microwave oven.
Types of Read Only Memory (ROM) –
• PROM (Programmable read-only memory) – It can be programmed by
user. Once programmed, the data and instructions in it cannot be changed.
• EPROM (Erasable Programmable read only memory) – It can be
reprogrammed. To erase data from it, expose it to ultra violet light. To
reprogram it, erase all the previous data.
• EEPROM (Electrically erasable programmable read only memory) –
The data can be erased by applying electric field, no need of ultra violet
light. We can erase only portions of the chip.
Classification of Secondary Storage Devices
As primary memory, is expensive as well as limited. The faster
primary memory is also volatile. If we need to store large amount of
data or programs permanently, we need a cheaper and permanent
memory. Such memory is called secondary memory that provides
permanent storage of data and in bulk quantity.
The Secondary storage media can be fixed or removable. Fixed
Storage media is an internal storage medium like hard disk that is
fixed inside the computer. Storage medium that are portable and can
be taken outside the computer are termed as removable storage media.
Applications:
• Permanent Storage: Primary Memory (RAM) is volatile, i.e. it
loses all information when the electricity is turned off, so in order to
secure the data permanently in the device, Secondary storage
devices are needed.
• Portability: Storage medium, like the CDs, flash drives can be used
to transfer the data from one device to another.
Secondary Storage Devices
Magnetic Tape, Magnetic Disk, Optical Disk, Magneto Optical
disk:
These are the storage devices provides a way to store data for a long
duration. These disks differ in many characteristics; firstly magnetic
disk works by using magnetic material over the disk whereas in
optical disk polycarbonate plastic is used in its construction and laser
is used to store and retrieve the data. The magnetic and optical disk
comes under the category of secondary storage devices. The need to
devise these devices has emerged because the previous semiconductor
storage devices have very limited capabilities, for example, the cost of
storing the information in such devices is very high.
Secondary Storage Devices
Magnetic Tape, Magnetic Disk, Optical Disk, Magneto Optical Disk
Secondary Storage Devices
Magnetic Tape memory: In magnetic tape only one side of the
ribbon is used for storing data. It is sequential memory which contains
thin plastic ribbon to store data and coated by magnetic oxide. Data
read/write speed is slower because of sequential access. It is highly
reliable which requires magnetic tape drive writing and reading data.
The width of the ribbon varies from 4mm to 1 Inch and it has storage
capacity 100 MB to 200 GB.
Advantages :
• These are inexpensive, i.e., low cost memories.
• It provides backup or archival storage.
• It can be used for large files.
• It can be used for copying from disk files.
• It is a reusable memory.
• It is compact and easy to store on racks.
Disadvantages :
• Sequential access not allowed,
• It requires caring to store, i.e., vulnerable humidity, dust free, and suitable
environment.
• stored data cannot be easily updated or modified
Secondary Storage Devices
Magnetic Disk: It is a type of secondary memory which is a flat disc
covered with magnetic coating to hold information. It is used to store
various programs and files. The polarized information in one direction
is represented by 1, and vice versa. The direction is indicated by 0.
It can store large amounts of data, but data access rate is slower than
main memory because of secondary memory. Data can be modified or
can be deleted easily in the magnetic disk memory. It also allows
random access of data.
• Advantages :-
These are economical memory
The easy and direct access of data possible.
It can store large amounts of data.
It has better data transfer rate than magnetic tapes.
It has less prone to corruption of data as compared to tapes.
• Disadvantages :-
These are less expensive than RAM but more expensive than magnetic tape.
It need clean and dust free environment to store.
These are not suitable for sequential access.
Secondary Storage Devices
Optical Disc: It is an electronic data storage medium that can be
written to and read from using a low-powered laser beam. Originally
developed in the late 1960s, the first optical disc, created by James T.
Russell, stored data as micron-wide dots of light and dark. In this a
laser read the dots and the data was converted to an electrical signal.
Then the data was converted to audio or visual output could hold
much more data than similarly sized magnetic storage media.
Magneto-optical Disc: It is a hybrid storage medium. In reading,
spots with different directions of magnetization give different
polarization in the reflected light of a low-power laser beam. In
writing, every spot on the disk is first heated by a strong laser beam
and then cooled under a magnetic field, magnetizing every spot in one
direction, to store all 0s. The writing process then reverses the
direction of the magnetic field to store 1s where desired.
Computer Memory

More Related Content

What's hot

Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processorMazin Alwaaly
 
Random access memory
Random access memoryRandom access memory
Random access memoryRuchi Maurya
 
Csc1401 lecture07 -external memory
Csc1401   lecture07 -external memoryCsc1401   lecture07 -external memory
Csc1401 lecture07 -external memoryIIUM
 
computer memory and memory module
computer memory and memory modulecomputer memory and memory module
computer memory and memory modulethensi
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating Systempratikkadam78
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessWBUTTUTORIALS
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureHaris456
 
Difference between Intel i3 i5 i7
Difference between Intel i3 i5 i7Difference between Intel i3 i5 i7
Difference between Intel i3 i5 i7Mohammad Danish
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecturektosri
 

What's hot (20)

Memory types
Memory typesMemory types
Memory types
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 
Random access memory
Random access memoryRandom access memory
Random access memory
 
Disk formatting
Disk formattingDisk formatting
Disk formatting
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Csc1401 lecture07 -external memory
Csc1401   lecture07 -external memoryCsc1401   lecture07 -external memory
Csc1401 lecture07 -external memory
 
computer memory and memory module
computer memory and memory modulecomputer memory and memory module
computer memory and memory module
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating System
 
TYPES OF MEMORY
TYPES OF MEMORYTYPES OF MEMORY
TYPES OF MEMORY
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memory Cache memory
Cache memory
 
06 External Memory
06  External  Memory06  External  Memory
06 External Memory
 
Types of RAM
Types of RAMTypes of RAM
Types of RAM
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer Architecture
 
Difference between Intel i3 i5 i7
Difference between Intel i3 i5 i7Difference between Intel i3 i5 i7
Difference between Intel i3 i5 i7
 
Memory technologies
Memory technologiesMemory technologies
Memory technologies
 
Storage devices
Storage devicesStorage devices
Storage devices
 
External Memory
External  MemoryExternal  Memory
External Memory
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecture
 

Similar to Computer Memory

5 computer memory
5 computer memory5 computer memory
5 computer memoryBaliThorat1
 
CBSE Informatics Practices Chapter-11 Basic Computer Organization
CBSE Informatics Practices Chapter-11 Basic Computer OrganizationCBSE Informatics Practices Chapter-11 Basic Computer Organization
CBSE Informatics Practices Chapter-11 Basic Computer OrganizationFaizSSIS
 
its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...ssuserf86fba
 
cache memory and cloud computing technology
cache memory and cloud computing technologycache memory and cloud computing technology
cache memory and cloud computing technologyssuserf86fba
 
Computer storage MBA present.pptx
Computer storage MBA present.pptxComputer storage MBA present.pptx
Computer storage MBA present.pptxfazilathshaikh1
 
Memory in computer
Memory in computerMemory in computer
Memory in computerahmed51236
 
06. system unit computer
06. system unit   computer06. system unit   computer
06. system unit computerTimesRide
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devicesChuuHye
 
Memory presentation
Memory presentationMemory presentation
Memory presentationaaravSingh41
 

Similar to Computer Memory (20)

5 computer memory
5 computer memory5 computer memory
5 computer memory
 
Memory
MemoryMemory
Memory
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
primary memory
primary memoryprimary memory
primary memory
 
CBSE Informatics Practices Chapter-11 Basic Computer Organization
CBSE Informatics Practices Chapter-11 Basic Computer OrganizationCBSE Informatics Practices Chapter-11 Basic Computer Organization
CBSE Informatics Practices Chapter-11 Basic Computer Organization
 
its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...
 
cache memory and cloud computing technology
cache memory and cloud computing technologycache memory and cloud computing technology
cache memory and cloud computing technology
 
Computer Memory.pptx
Computer Memory.pptxComputer Memory.pptx
Computer Memory.pptx
 
Computer storage MBA present.pptx
Computer storage MBA present.pptxComputer storage MBA present.pptx
Computer storage MBA present.pptx
 
Memory in computer
Memory in computerMemory in computer
Memory in computer
 
Main Memory RAM and ROM
Main Memory RAM and ROMMain Memory RAM and ROM
Main Memory RAM and ROM
 
Memory devices
Memory devicesMemory devices
Memory devices
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
06. system unit computer
06. system unit   computer06. system unit   computer
06. system unit computer
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devices
 
Computer Introduction-Lecture02
Computer Introduction-Lecture02Computer Introduction-Lecture02
Computer Introduction-Lecture02
 
3 computer memory
3   computer memory3   computer memory
3 computer memory
 
Memory presentation
Memory presentationMemory presentation
Memory presentation
 
Memory
Memory Memory
Memory
 
computer storage
computer storagecomputer storage
computer storage
 

More from Sweta Kumari Barnwal

Computer Network-Data Link Layer-Module-2.pdf
Computer Network-Data Link Layer-Module-2.pdfComputer Network-Data Link Layer-Module-2.pdf
Computer Network-Data Link Layer-Module-2.pdfSweta Kumari Barnwal
 
Sensors in Different Applications Area.pdf
Sensors in Different Applications Area.pdfSensors in Different Applications Area.pdf
Sensors in Different Applications Area.pdfSweta Kumari Barnwal
 
Sensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSweta Kumari Barnwal
 
Sensors fundamentals and characteristics, physical principle of sensing
Sensors fundamentals and characteristics, physical principle of sensingSensors fundamentals and characteristics, physical principle of sensing
Sensors fundamentals and characteristics, physical principle of sensingSweta Kumari Barnwal
 
Module 5-cloud computing-SECURITY IN THE CLOUD
Module 5-cloud computing-SECURITY IN THE CLOUDModule 5-cloud computing-SECURITY IN THE CLOUD
Module 5-cloud computing-SECURITY IN THE CLOUDSweta Kumari Barnwal
 
Process improvement & service oriented software engineering
Process improvement & service oriented software engineeringProcess improvement & service oriented software engineering
Process improvement & service oriented software engineeringSweta Kumari Barnwal
 

More from Sweta Kumari Barnwal (20)

UNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdfUNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdf
 
MODULE-2-Cloud Computing.docx.pdf
MODULE-2-Cloud Computing.docx.pdfMODULE-2-Cloud Computing.docx.pdf
MODULE-2-Cloud Computing.docx.pdf
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
 
Cloud Computing_Module-1.pdf
Cloud Computing_Module-1.pdfCloud Computing_Module-1.pdf
Cloud Computing_Module-1.pdf
 
Computer Network-Data Link Layer-Module-2.pdf
Computer Network-Data Link Layer-Module-2.pdfComputer Network-Data Link Layer-Module-2.pdf
Computer Network-Data Link Layer-Module-2.pdf
 
Sensors in Different Applications Area.pdf
Sensors in Different Applications Area.pdfSensors in Different Applications Area.pdf
Sensors in Different Applications Area.pdf
 
Sensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuits
 
Sensors fundamentals and characteristics, physical principle of sensing
Sensors fundamentals and characteristics, physical principle of sensingSensors fundamentals and characteristics, physical principle of sensing
Sensors fundamentals and characteristics, physical principle of sensing
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Features of windows
Features of windowsFeatures of windows
Features of windows
 
Operating system and services
Operating system and servicesOperating system and services
Operating system and services
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Application Layer
Application LayerApplication Layer
Application Layer
 
Network Layer & Transport Layer
Network Layer & Transport LayerNetwork Layer & Transport Layer
Network Layer & Transport Layer
 
Module 5-cloud computing-SECURITY IN THE CLOUD
Module 5-cloud computing-SECURITY IN THE CLOUDModule 5-cloud computing-SECURITY IN THE CLOUD
Module 5-cloud computing-SECURITY IN THE CLOUD
 
Module 3-cyber security
Module 3-cyber securityModule 3-cyber security
Module 3-cyber security
 
Unit ii-hackers and cyber crimes
Unit ii-hackers and cyber crimesUnit ii-hackers and cyber crimes
Unit ii-hackers and cyber crimes
 
Module 3-cloud computing
Module 3-cloud computingModule 3-cloud computing
Module 3-cloud computing
 
Virtualization - cloud computing
Virtualization - cloud computingVirtualization - cloud computing
Virtualization - cloud computing
 
Process improvement & service oriented software engineering
Process improvement & service oriented software engineeringProcess improvement & service oriented software engineering
Process improvement & service oriented software engineering
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Computer Memory

  • 1. Introduction to Computer System Primary Memory & Secondary Memory Prepared By S.K. Barnwal Assistant Professor Arka Jain University Research Scholar (NIT, Jamshedpur)
  • 2. Memory Computer memory is just like a human brain used to store data and instructions. It is the storage space in the computer, where data is to be processed and instructions required for processing are stored. The memory is divided into large number of small parts called cells. Each location or cell has a unique address, which varies from zero to memory size minus one. For example, if the computer has 64k words, then this memory unit has 64 * 1024 = 65536 memory locations. The address of these locations varies from 0 to 65535. In actual memory is the most essential element of a computing system because without it computer can’t perform simple tasks. Computer memory is of two basic type – Primary memory(RAM and ROM) and Secondary memory(hard drive, CD, etc.). Random Access Memory (RAM) is primary-volatile memory and Read Only Memory (ROM) is primary-non-volatile memory.
  • 3. Memory Memory unit is the amount of data that can be stored in the storage unit. This storage capacity is expressed in terms of Bytes. • Bit (Binary Digit): A binary digit is logical 0 and 1 representing a passive or an active state of a component in an electric circuit. • Nibble: A group of 4 bits is called nibble. • Byte: A group of 8 bits is called byte. A byte is the smallest unit, which can represent a data item or a character. • Word: A computer word, like a byte, is a group of fixed number of bits processed as a unit, which varies from computer to computer but is fixed for each computer. • 1 KB = 1024 Bytes • 1 MB = 1024 KB • 1 GB = 1024 MB • 1 TB = 1024 GB Memory is primarily of three types − • Cache Memory • Primary Memory/Main Memory • Secondary Memory
  • 4. Memory Cache Memory: Cache memory is a very high speed semiconductor memory which can speed up the CPU. It acts as a buffer between the CPU and the main memory. It is used to hold those parts of data and program which are most frequently used by the CPU. The parts of data and programs are transferred from the disk to cache memory by the operating system, from where the CPU can access them. Advantages • The advantages of cache memory are as follows − • Cache memory is faster than main memory. • It consumes less access time as compared to main memory. • It stores the program that can be executed within a short period of time. • It stores data for temporary use. Disadvantages • The disadvantages of cache memory are as follows − • Cache memory has limited capacity. • It is very expensive.
  • 5. Memory Primary Memory (Main Memory): Primary memory holds only those data and instructions on which the computer is currently working. It has a limited capacity and data is lost when power is switched off. It is generally made up of semiconductor device. These memories are not as fast as registers. The data and instruction required to be processed resides in the main memory. It is divided into two subcategories RAM and ROM. Characteristics of Main Memory • These are semiconductor memories. • It is known as the main memory. • Usually volatile memory. • Data is lost in case power is switched off. • It is the working memory of the computer. • Faster than secondary memories. • A computer cannot run without the primary memory.
  • 6. Memory Secondary Memory: This type of memory is also known as external memory or non-volatile. It is slower than the main memory. These are used for storing data/information permanently. CPU directly does not access these memories, instead they are accessed via input-output routines. The contents of secondary memories are first transferred to the main memory, and then the CPU can access it. For example, disk, CD-ROM, DVD, etc. Characteristics of Secondary Memory • These are magnetic and optical memories. • It is known as the backup memory. • It is a non-volatile memory. • Data is permanently stored even if power is switched off. • It is used for storage of data in a computer. • Computer may run without the secondary memory. • Slower than primary memories.
  • 7. Memory Hierarchy Speed Increases Memory Space Decreases Speed Decreases Memory Space Increases
  • 8. RAM RAM (Random Access Memory): It is the internal memory of the CPU for storing data, program, and program result. It is a read/write memory which stores data until the machine is working. As soon as the machine is switched off, data is erased. Access time in RAM is independent of the address, that is, each storage location inside the memory is as easy to reach as other locations and takes the same amount of time. Data in the RAM can be accessed randomly but it is very expensive. It is volatile, data stored in it is lost when switch off the computer or if there is a power failure. Hence, a backup UPS (Uninterruptible Power System) is often used with computers. RAM is small, both in terms of its physical size and in the amount of data it can hold. RAM is of two types − • Static RAM (SRAM) • Dynamic RAM (DRAM)
  • 9. RAM Static RAM (SRAM): The word static indicates that the memory retains its contents as long as power is being supplied. However, data is lost when the power gets down due to volatile nature. SRAM chips use a matrix of 6-transistors and no capacitors. Transistors do not require power to prevent leakage, so SRAM need not be refreshed on a regular basis. Characteristic of Static RAM • Long life • No need to refresh • Faster • Used as cache memory • Large size • Expensive • High power consumption
  • 10. RAM Dynamic RAM (DRAM): It is unlike SRAM, must be continually refreshed in order to maintain the data. This is done by placing the memory on a refresh circuit that rewrites the data several hundred times per second. DRAM is used for most system memory as it is cheap and small. Characteristics of Dynamic RAM • Short data lifetime • Needs to be refreshed continuously • Slower as compared to SRAM • Used as RAM • Smaller in size • Less expensive • Less power consumption
  • 11. ROM Read Only Memory (ROM): The memory from which data can only read but cannot write on it. This type of memory is non-volatile in nature. The information is stored permanently in such memories during manufacture. A ROM stores such instructions that are required to start a computer. This operation is referred to as bootstrap. ROM chips are not only used in the computer but also in other electronic items like washing machine and microwave oven. Types of Read Only Memory (ROM) – • PROM (Programmable read-only memory) – It can be programmed by user. Once programmed, the data and instructions in it cannot be changed. • EPROM (Erasable Programmable read only memory) – It can be reprogrammed. To erase data from it, expose it to ultra violet light. To reprogram it, erase all the previous data. • EEPROM (Electrically erasable programmable read only memory) – The data can be erased by applying electric field, no need of ultra violet light. We can erase only portions of the chip.
  • 12. Classification of Secondary Storage Devices As primary memory, is expensive as well as limited. The faster primary memory is also volatile. If we need to store large amount of data or programs permanently, we need a cheaper and permanent memory. Such memory is called secondary memory that provides permanent storage of data and in bulk quantity. The Secondary storage media can be fixed or removable. Fixed Storage media is an internal storage medium like hard disk that is fixed inside the computer. Storage medium that are portable and can be taken outside the computer are termed as removable storage media. Applications: • Permanent Storage: Primary Memory (RAM) is volatile, i.e. it loses all information when the electricity is turned off, so in order to secure the data permanently in the device, Secondary storage devices are needed. • Portability: Storage medium, like the CDs, flash drives can be used to transfer the data from one device to another.
  • 13. Secondary Storage Devices Magnetic Tape, Magnetic Disk, Optical Disk, Magneto Optical disk: These are the storage devices provides a way to store data for a long duration. These disks differ in many characteristics; firstly magnetic disk works by using magnetic material over the disk whereas in optical disk polycarbonate plastic is used in its construction and laser is used to store and retrieve the data. The magnetic and optical disk comes under the category of secondary storage devices. The need to devise these devices has emerged because the previous semiconductor storage devices have very limited capabilities, for example, the cost of storing the information in such devices is very high.
  • 14. Secondary Storage Devices Magnetic Tape, Magnetic Disk, Optical Disk, Magneto Optical Disk
  • 15. Secondary Storage Devices Magnetic Tape memory: In magnetic tape only one side of the ribbon is used for storing data. It is sequential memory which contains thin plastic ribbon to store data and coated by magnetic oxide. Data read/write speed is slower because of sequential access. It is highly reliable which requires magnetic tape drive writing and reading data. The width of the ribbon varies from 4mm to 1 Inch and it has storage capacity 100 MB to 200 GB. Advantages : • These are inexpensive, i.e., low cost memories. • It provides backup or archival storage. • It can be used for large files. • It can be used for copying from disk files. • It is a reusable memory. • It is compact and easy to store on racks. Disadvantages : • Sequential access not allowed, • It requires caring to store, i.e., vulnerable humidity, dust free, and suitable environment. • stored data cannot be easily updated or modified
  • 16. Secondary Storage Devices Magnetic Disk: It is a type of secondary memory which is a flat disc covered with magnetic coating to hold information. It is used to store various programs and files. The polarized information in one direction is represented by 1, and vice versa. The direction is indicated by 0. It can store large amounts of data, but data access rate is slower than main memory because of secondary memory. Data can be modified or can be deleted easily in the magnetic disk memory. It also allows random access of data. • Advantages :- These are economical memory The easy and direct access of data possible. It can store large amounts of data. It has better data transfer rate than magnetic tapes. It has less prone to corruption of data as compared to tapes. • Disadvantages :- These are less expensive than RAM but more expensive than magnetic tape. It need clean and dust free environment to store. These are not suitable for sequential access.
  • 17. Secondary Storage Devices Optical Disc: It is an electronic data storage medium that can be written to and read from using a low-powered laser beam. Originally developed in the late 1960s, the first optical disc, created by James T. Russell, stored data as micron-wide dots of light and dark. In this a laser read the dots and the data was converted to an electrical signal. Then the data was converted to audio or visual output could hold much more data than similarly sized magnetic storage media. Magneto-optical Disc: It is a hybrid storage medium. In reading, spots with different directions of magnetization give different polarization in the reflected light of a low-power laser beam. In writing, every spot on the disk is first heated by a strong laser beam and then cooled under a magnetic field, magnetizing every spot in one direction, to store all 0s. The writing process then reverses the direction of the magnetic field to store 1s where desired.