SlideShare a Scribd company logo
1 of 34
Download to read offline
COMPUTER MEMORY
LECTURE # 03 (COMPUTER APPLICATIONS)
INTRODUCTION
ā€¢ The computer memory stores different kinds of data like input
data, output data, intermediate results, etc., and the instructions.
ā€¢ Storage may be required for a limited period of time, instantly, or,
for an extended period of time.
ā€¢ The cache memory, registers, and RAM are fast memories and
store the data and instructions temporarily during the processing
of data and instructions.
ā€¢ The secondary memory like magnetic disks and optical disks
have large storage capacities and store the data and instructions
permanently, but are slow memory devices.
ā€¢ The memories are organized in the computer in a manner to
achieve high levels of performance at the minimum cost.
MEMORY REPRESENTATION
ā€¢ Binary digit or bit is the basic unit of memory.
ā€¢ A bit is a single binary digit, i.e., 0 or 1 and is the smallest
unit of representation of data in a computer.
ā€¢ A group of 8 bits form a byte. One byte is the smallest unit
of data that is handled by the computer.
ā€¢ One byte can store 28, i.e., 256 different combinations of
bits, and thus can be used to represent 256 different symbols.
ā€¢ In a byte, the different combinations of bits fall in the range
00000000 to 11111111.
ā€¢ A group of bytes can be further combined to form a word. A
word can be a group of 2, 4 or 8 bytes.
MEMORY REPRESENTATION
ā€¢ 1 bit = 0 or 1
ā€¢ 1 Byte (B) = 8 bits
ā€¢ 1 Kilobyte (KB) = 210 Bytes = 1024 bytes
ā€¢ 1 Megabyte (MB) = 220 Bytes = 1024KB
ā€¢ 1 Gigabyte (GB) = 230 Bytes = 1024 MB = 1024 *1024 KB
ā€¢ 1 Terabyte (TB) = 240 Bytes = 1024 GB = 1024 * 1024 *1024 KB
ā€¢ Memory is logically organized as a linear array of locations.
ā€¢ For a processor, the range of the memory addresses is 0 to the
maximum size of memory. Figure 3.1 shows the organization of a 16
MB block of memory for a processor with a 32-bit word length.
MEMORY REPRESENTATION
Figure 3.1 Organization of memory
MEMORY HIERARCHY
ā€¢ The memory is characterized on the basis of two key factors:
1. capacity and
2. access time.
ā€¢ Capacity is the amount of information (in bits) that a
memory can store.
ā€¢ Access time is the time interval between the read/ write
request and the availability of data. The lesser the access
time, the faster is the speed of memory.
ā€¢ The hierarchy of the different memory types is shown in
Figure 3.2.
MEMORY HIERARCHY(FIGURE 3.2)
MEMORY HIERARCHY
ā€¢ The internal memory and external memory are the two broad
categories of memory used in the computer.
Internal Memory
ā€¢ The key features of internal memory are:
(1) limited storage capacity,
(2) temporary storage,
(3) fast access, and
(4) high cost.
ā€¢ Registers, cache memory, and primary memory constitute the
internal memory.
MEMORY HIERARCHY
ā€¢ Registers are the fastest and the most expensive among all
the memory types. The registers are located inside the CPU,
and are directly accessible by the CPU. The speed of
registers is between 1ā€”2 ns (nanosecond). The sum of the
size of registers is about 200B.
ā€¢ Cache memory is next in the hierarchy and is placed between
the CPU and the main memory. The speed of cache is
between 2ā€”10 ns. The cache size varies between 32 KB to
4MB.
ā€¢ Any program or data that has to be executed must be brought
into RAM from the secondary memory. Primary memory is
relatively slower than the cache memory. The speed of RAM
is around 60ns. The RAM size varies from 512KB to 12GB.
MEMORY HIERARCHY
Secondary Memory
ā€¢ The key features of secondary memory storage devices are:
(1) very high storage capacity,
(2) permanent storage (non-volatile), unless erased by user,
(3) relatively slower access,
(4) stores data and instructions that are not currently being used by
CPU but may be required later for processing, and
(5) cheapest among all memory.
ā€¢ The storage devices consist of two partsā€”drive and device.
For example magnetic tape drive and magnetic tape,
magnetic disk drive and disk, and, optical disk drive and
disk.
MEMORY HIERARCHY
ā€¢ The speed of magnetic disk is around 60ms. The capacity of a
hard disk ranges from 500 GB to 3000 GB (3 Tera Bytes).
ā€¢ The speed of memories is dependent on the kind of technology
used for the memory.
ā€¢ The registers, cache memory and primary memory are
semiconductor memories. They do not have any moving parts and
are fast memories.
ā€¢ The secondary memory is magnetic or optical memory, has
moving parts and has slow speed.
ā€¢ To get the fastest speed of memory with largest capacity and least
cost, the fast memory is located close to the processor. The
secondary memory, which is not as fast, is used to store
information permanently, and is placed farthest from the
processor.
MEMORY HIERARCHY
ā€¢ With respect to CPU, the memory is organized as follows:
ļƒ˜Registers are placed inside the CPU (small capacity, high cost, very
high speed)
ļƒ˜Cache memory is placed next in the hierarchy (inside and outside
the CPU)
ļƒ˜Primary memory is placed next in the hierarchy
ļƒ˜Secondary memory is the farthest from CPU (large capacity, low
cost, low speed)
MEMORY HIERARCHY
Figure 3.3 CPU and the memory
CPU REGISTERS
ā€¢ Registers are very high-speed storage areas located inside the
CPU.
ā€¢ After CPU gets the data and instructions from the cache or RAM,
the data and instructions are moved to the registers for
processing.
ā€¢ Registers are manipulated directly by the control unit of CPU
during instruction execution. That is why registers are often
referred to as the CPUā€™s working memory.
ā€¢ Since CPU uses registers for the processing of data, the number
of registers in a CPU and the size of each register affect the
power and speed of a CPU.
ā€¢ The more the number of registers (ten to hundreds) and bigger the
size of each register (8 bits to 64 bits), the better it is.
CACHE MEMORY
ā€¢ Cache memory is placed in between the CPU and the RAM.
ā€¢ Cache memory is a fast memory, faster than the RAM. When the CPU
needs an instruction or data during processing, it first looks in the
cache.
ā€¢ If the information is present in the cache, it is called a cache hit, and
the data or instruction is retrieved from the cache.
ā€¢ If the information is not present in cache, then it is called a cache miss
and the information is then retrieved from RAM.
ā€¢ The content of cache is decided by the cache controller (a circuit on the
motherboard). The most recently accessed information or instructions
help the controller to guess the RAM locations that may be accessed
next.
ā€¢ To get good system performance, the number of hits must be greater
than the misses. The two main factors that affect the performance of
cache are its size and level (L1, L2 and L3).
PRIMARY MEMORY
ā€¢ Primary memory is the main memory of computer. It is a chip mounted
on the motherboard of computer.
ā€¢ Primary memory is categorized into two main types:
1. Random Access Memory (RAM), and
2. Read Only Memory (ROM)
ā€¢ RAM is used for the temporary storage of input data, output data and
intermediate results. The input data entered into the computer using the
input device, is stored in RAM for processing.
ā€¢ After processing, the output data is stored in RAM before being sent to
the output device. Any intermediate results generated during the
processing of program are also stored in RAM.
ā€¢ Unlike RAM, the data once stored in ROM either cannot be changed or
can only be changed using some special operations. Therefore, ROM is
used to store the data that does not require a change.
RANDOM ACCESS MEMORY
ā€¢ RAM is used to store data and instructions during the operation
of computer.
ā€¢ The data and instructions that need to be operated upon by CPU are first
brought to RAM from the secondary storage devices like the hard disk.
ā€¢ CPU interacts with RAM to get the data and instructions for processing.
ā€¢ RAM loses information when the computer is powered off. It is a
volatile memory.
ā€¢ RAM provides random access to the stored bytes, words, or
larger data units. This means that it requires same amount of time
to access information from RAM, irrespective of where it is
located in it.
ā€¢ RAM can be read from and written to with the same speed.
ā€¢ The size of RAM is limited due to its high cost. The size of RAM
is measured in MB or GB.
RANDOM ACCESS MEMORY
ā€¢ The performance of RAM is affected by:
ā€¢ Access speed (how quickly information can be retrieved). The speed of
RAM is expressed in nanoseconds.
ā€¢ Data transfer unit size (how much information can be retrieved in one
request).
ā€¢ RAM affects the speed and power of a computer. More the RAM,
the better it is.
ā€¢ Nowadays, computers generally have 1 GB to 12 GB of RAM.
ā€¢ RAM is a microchip implemented using semiconductors.
ā€¢ There are two categories of RAM, depending on the technology
used to construct a RAM:
(1) Dynamic RAM (DRAM), and
(2) Static RAM (SRAM).
RANDOM ACCESS MEMORY
ā€¢ DRAM is the most common type of memory chip. DRAM is
mostly used as main memory since it is small and cheap.
ā€¢ It uses transistors and capacitors. The transistor and capacitor
are paired to make a memory cell.
ā€¢ DRAM must be refreshed continually to store information.
For this, a memory controller is used.
ā€¢ DRAM gets its name from the refresh operation that it
requires to store the information; otherwise it will lose what
it is holding. The refresh operation occurs automatically
thousands of times per second. DRAM is slow because the
refreshing takes time.
ā€¢ Access speed of DRAM ranges from 50 to 150 ns.
RANDOM ACCESS MEMORY
ā€¢ SRAM chip is usually used in cache memory due to its high
speed.
ā€¢ SRAM uses multiple transistors (four to six), for each memory
cell. It does not have a capacitor in each cell.
ā€¢ A SRAM memory cell has more parts so it takes more space on a
chip than DRAM cell.
ā€¢ It does not need constant refreshing and therefore is faster than
DRAM.
ā€¢ SRAM is more expensive than DRAM, and it takes up more
space.
ā€¢ It stores information as long as it is supplied with power.
ā€¢ SRAM are easier to use and very fast.
ā€¢ The access speed of SRAM ranges from 2ā€“10 nanosecond.
READ ONLY MEMORY
ROM is a non-volatile primary memory. It does not lose its content
when the power is switched off. The features of ROM are described
as follows:
ā€¢ ROM has only read capability and no write capability. After the
information is stored in ROM, it is permanent and cannot be
corrected.
ā€¢ ROM comes programmed by the manufacturer. It stores standard
processing programs that permanently reside in the computer.
ROM stores the data needed for the start up of the computer. The
instructions that are required for initializing the devices attached
to a computer are stored in ROM.
ā€¢ The ROM memory chip (Figure 3.5) stores the Basic Input
Output System (BIOS). BIOS provides the processor with the
information required to boot the system. It does not load from
disk but instead is stored in a ROM memory chip.
READ ONLY MEMORY
ā€¢ When the computer is turned on, the BIOS does the following
things:
1. Power On Self Test (POST) It checks that the major hardware
components are working properly.
2. BIOS setup program, lets the user set the many functions that control
how the computer works.
3. Bootstrap Loader is a program whose purpose is to start the computer
software for operation when the power is turned on. It loads the
operating system into RAM and launches it
ā€¢ ROMs are of different kinds. They vary in the number of re-
writes and the method used for the re-writing.
ā€¢ PROM (Programmable ROM) can be programmed with a special tool,
but after it has been programmed the contents cannot be changed.
READ ONLY MEMORY
ā€¢ EPROM (Erasable Programmable ROM) can be programmed in a
similar way as PROM, but it can be erased by exposing it to ultra
violet light and re-programmed
ā€¢ EEPROM (Electrically Erasable Programmable ROM) memories
can be erased by electric charge and re-programmed.
ā€¢ Flash Memory is a kind of semiconductor-based non-
volatile, rewritable computer memory that can be electrically
erased and reprogrammed. It is a specific type of EEPROM.
ā€¢ Examples of flash memories are memory used in digital
camera, mobile phone, printer, laptop computer, and MP3
players.
SECONDARY MEMORY
ā€¢ In addition to primary memory, an auxiliary or secondary
memory is required by a computer. The secondary memory
is also called the storage device of computer.
ā€¢ In comparison to the primary memory, the secondary
memory stores much larger amounts of data and information
(for example, an entire software program) for extended
periods of time.
ā€¢ The data and instructions stored in secondary memory must
be fetched into RAM before processing is done by CPU.
ā€¢ Magnetic tape drives, magnetic disk drives, optical disk
drives and magneto-optical disk drives are the different types
of storage devices.
ACCESS TYPES OF SECONDARY
MEMORY / STORAGE DEVICES
ā€¢ The information stored in storage devices can be accessed in two
ways:
1. Sequential access
2. Direct access
ā€¢ Sequential Access Devices: Sequential access means that
computer must run through the data in sequence, starting from the
beginning, in order to locate a particular piece of data. They are
slow.
ā€¢ Direct Access Devices: Direct access devices are the ones in
which any piece of data can be retrieved in a non-sequential
manner by locating it using the dataā€™s address.
ā€¢ Based on access, magnetic tapes are sequential access devices,
and, magnetic disks, optical disk and magneto-optical disks are
direct access devices.
MAGNETIC TAPE
ā€¢ Magnetic tape is a plastic tape with magnetic coating (Figure
3.7). It is a storage medium on a large open reel or in a
smaller cartridge or cassette (like a music cassette).
ā€¢ Magnetic tapes are cheaper storage media. They are durable,
can be written, erased, and re-written. Magnetic tapes are
sequential access devices.
ā€¢ Data is recorded on tape in the form of blocks, where a block
consists of a group of data also called as records. Each block
is read continually.
MAGNETIC DISK
ā€¢ Magnetic disk is a direct access secondary storage device. It
is a thin plastic or metallic circular plate coated with
magnetic oxide and encased in a protective cover.
ā€¢ Data is stored on magnetic disks as magnetized spots. The
presence of a magnetic spot represents the bit 1 and its
absence represents the bit 0.
ā€¢ The features of magnetic disk are cheap, portable, fast,
reliable and can store a large amount of data
FLOPPY DISK
ā€¢ Floppy disk (FD) is a flat, round, single disk made of Mylar
plastic and enclosed in square plastic jacket (Figure 3.11).
ā€¢ Floppy Disk Drive (FDD) is the disk drive for floppy disk.
ā€¢ The floppy disk is inserted into the floppy disk drive to read
or write data to it.
HARD DISK
ā€¢ A hard disk (HD)
consists of one or
more platters divided
into concentric tracks
and sectors.
ā€¢ It is mounted on a
central spindle, like a
stack. It can be read
by a read/write head
that pivots across the
rotating disks.
ā€¢ The data is stored on
the platters covered
with magnetic coating
(Figure 3.12).
Figure 3.12 Parts of hard disk
OPTICAL DISK
ā€¢ Optical disk is a flat
and circular disk
which is coated with
reflective plastic
material that can be
altered by laser light.
ā€¢ Optical disk does not
use magnetism. The
bits 1 and 0 are stored
as spots that are
relatively bright and
light, respectively.
Figure 3.15 Sectors and track in magnetic disk and
optical disk
CD-ROM
ā€¢ Originally, Compact Disk (CD) was a popular medium for storing
music. Now, it is used in computers to store data and is called
Compact Disk-Read Only Memory (CD-ROM).
ā€¢ CD-ROM is an optical disk that can only be read and not written
on.
ā€¢ CD-ROM is written on by the manufacturer of the CD-ROM
using the laser light.
ā€¢ A CD-ROM drive reads data from the compact disk.
ā€¢ The storage density of CD-ROM is very high and cost is low as
compared to floppy disk and hard disk
ā€¢ It is a commonly used medium for distributing software and large
data.
DVD-ROM
ā€¢ Digital Video Disk-Read Only Memory (DVD-ROM) is an
optical storage device used to store digital video or computer
data.
ā€¢ DVDs look like CDs, in shape and physical size.
ā€¢ It improves on CD technology.
ā€¢ DVD-ROM uses both sides of the disk and special data
compression technologies. The tracks for storing data are
extremely small.
ā€¢ Each side of DVD-ROM can store 4.7 GB of data, so a
single DVD can store 9.4 GB of data.
USING THE COMPUTER MEMORY
The computer starts using the memory from the moment the
computer is switched on, till the time it is switched off. The list of
steps that the computer performs from the time it is switched on
are:
ā€¢ Turn the computer on.
ā€¢ The computer loads data from ROM. It makes sure that all the
major components of the computer are functioning properly.
ā€¢ The computer loads the BIOS from ROM. The BIOS provides the
most basic information about storage devices, boot sequence,
security, plug and play capability and other items.
ā€¢ The computer loads the OS from the hard drive into the systemā€™s
RAM. CPU has immediate access to the OS as the critical parts
of the OS are maintained in RAM as long as the computer is on.
This enhances the performance and functionality of the overall
system.
USING THE COMPUTER MEMORY
ā€¢ Now the system is ready for use.
ā€¢ When you load or open an application it is loaded in the RAM.
Since the CPU looks for information in the RAM, any data and
instructions that are required for processing (read, write or
update) is brought into RAM.
ā€¢ The CPU requests the data it needs from RAM, processes it and
writes new data back to RAM in a continuous cycle. The
shuffling of data between the CPU and RAM happens millions of
times every second.
ā€¢ When you save a file and close the application, the file is written
to the secondary memory as specified by you. The application
and any accompanying files usually get deleted from RAM to
make space for new data. If the files are not saved to a storage
device before being closed, they are lost.

More Related Content

What's hot

Primary Memory: RAM, ROM and their Types
Primary Memory: RAM, ROM and their TypesPrimary Memory: RAM, ROM and their Types
Primary Memory: RAM, ROM and their TypesHem Pokhrel
Ā 
Memory / Storage Devices
Memory / Storage DevicesMemory / Storage Devices
Memory / Storage DevicesGECE BADIN
Ā 
External Devices of computer
External Devices of computerExternal Devices of computer
External Devices of computerMicrobiology
Ā 
Storage device
Storage deviceStorage device
Storage deviceTejas Moka
Ā 
Primary and secondary storage devices
Primary and secondary storage devicesPrimary and secondary storage devices
Primary and secondary storage devicesPichano Kikon
Ā 
Primary and secondary Storage devices
Primary and secondary Storage devicesPrimary and secondary Storage devices
Primary and secondary Storage devicesMuhammad Usman
Ā 
Memory presentation
Memory presentationMemory presentation
Memory presentationaaravSingh41
Ā 
Computer memory presentation
Computer memory presentationComputer memory presentation
Computer memory presentationaaravSingh41
Ā 
All about Computer memory in one ppt
All about Computer memory in one pptAll about Computer memory in one ppt
All about Computer memory in one pptANKURTOMAR29
Ā 
Storage devices
Storage devicesStorage devices
Storage devicesshidabahri810
Ā 
Presentation on storage device
Presentation on storage devicePresentation on storage device
Presentation on storage deviceNitish Xavier Tirkey
Ā 
Assembly language
Assembly languageAssembly language
Assembly languagegaurav jain
Ā 
CRT Monitor
CRT MonitorCRT Monitor
CRT MonitorYasir Ali
Ā 

What's hot (20)

Primary Memory: RAM, ROM and their Types
Primary Memory: RAM, ROM and their TypesPrimary Memory: RAM, ROM and their Types
Primary Memory: RAM, ROM and their Types
Ā 
Computer MEMORY
Computer MEMORYComputer MEMORY
Computer MEMORY
Ā 
Memory / Storage Devices
Memory / Storage DevicesMemory / Storage Devices
Memory / Storage Devices
Ā 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
Ā 
External Devices of computer
External Devices of computerExternal Devices of computer
External Devices of computer
Ā 
Storage device
Storage deviceStorage device
Storage device
Ā 
RAM And ROM
RAM And ROMRAM And ROM
RAM And ROM
Ā 
Primary and secondary storage devices
Primary and secondary storage devicesPrimary and secondary storage devices
Primary and secondary storage devices
Ā 
Primary and secondary Storage devices
Primary and secondary Storage devicesPrimary and secondary Storage devices
Primary and secondary Storage devices
Ā 
Memory presentation
Memory presentationMemory presentation
Memory presentation
Ā 
Computer System Organization
Computer System OrganizationComputer System Organization
Computer System Organization
Ā 
Computer memory presentation
Computer memory presentationComputer memory presentation
Computer memory presentation
Ā 
All about Computer memory in one ppt
All about Computer memory in one pptAll about Computer memory in one ppt
All about Computer memory in one ppt
Ā 
Cpu ppt cse
Cpu ppt cseCpu ppt cse
Cpu ppt cse
Ā 
Storage devices
Storage devicesStorage devices
Storage devices
Ā 
COMPUTER STORAGE
COMPUTER STORAGECOMPUTER STORAGE
COMPUTER STORAGE
Ā 
Presentation on storage device
Presentation on storage devicePresentation on storage device
Presentation on storage device
Ā 
Assembly language
Assembly languageAssembly language
Assembly language
Ā 
CRT Monitor
CRT MonitorCRT Monitor
CRT Monitor
Ā 
Flash memory
Flash memoryFlash memory
Flash memory
Ā 

Similar to 3 computer memory

primary memory
primary memoryprimary memory
primary memoryRamya Kotyan
Ā 
Exploring Of System Hardware
Exploring Of System HardwareExploring Of System Hardware
Exploring Of System HardwareMuhammad Nauman
Ā 
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 Memory
Computer MemoryComputer Memory
Computer MemoryFaraz Ahmed
Ā 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchysreelakshmikv
Ā 
unit4 and unit5.pptx
unit4 and unit5.pptxunit4 and unit5.pptx
unit4 and unit5.pptxbobbyk11
Ā 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisationRamjiChaurasiya
Ā 
SESSION 9 - Storage on the computer .pdf
SESSION 9 - Storage on the computer .pdfSESSION 9 - Storage on the computer .pdf
SESSION 9 - Storage on the computer .pdfMaxwell Musonda
Ā 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdfISHAN194169
Ā 
Memory Organisation.pptx
Memory Organisation.pptxMemory Organisation.pptx
Memory Organisation.pptxBtechlife
Ā 
Memory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxMemory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxwajihaabbas95
Ā 
06. system unit computer
06. system unit   computer06. system unit   computer
06. system unit computerTimesRide
Ā 
Memory organization
Memory organizationMemory organization
Memory organizationAL- AMIN
Ā 
06. System unit of computer
06. System unit of computer06. System unit of computer
06. System unit of computerTimesRide
Ā 
COMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptxCOMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptxssusere16bd9
Ā 
Memory & its types presentation1
Memory & its types presentation1Memory & its types presentation1
Memory & its types presentation1JAI BAMORIYA
Ā 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3rickypatel151
Ā 

Similar to 3 computer memory (20)

primary memory
primary memoryprimary memory
primary memory
Ā 
Exploring Of System Hardware
Exploring Of System HardwareExploring Of System Hardware
Exploring Of System Hardware
Ā 
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
Computer MemoryComputer Memory
Computer Memory
Ā 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
Ā 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
Ā 
unit4 and unit5.pptx
unit4 and unit5.pptxunit4 and unit5.pptx
unit4 and unit5.pptx
Ā 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisation
Ā 
SESSION 9 - Storage on the computer .pdf
SESSION 9 - Storage on the computer .pdfSESSION 9 - Storage on the computer .pdf
SESSION 9 - Storage on the computer .pdf
Ā 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdf
Ā 
Memory Organisation.pptx
Memory Organisation.pptxMemory Organisation.pptx
Memory Organisation.pptx
Ā 
Memory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptxMemory and Processor for class presentation.pptx
Memory and Processor for class presentation.pptx
Ā 
06. system unit computer
06. system unit   computer06. system unit   computer
06. system unit computer
Ā 
Memory organization
Memory organizationMemory organization
Memory organization
Ā 
COA (Unit_4.pptx)
COA (Unit_4.pptx)COA (Unit_4.pptx)
COA (Unit_4.pptx)
Ā 
06. System unit of computer
06. System unit of computer06. System unit of computer
06. System unit of computer
Ā 
COMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptxCOMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptx
Ā 
Memory & its types presentation1
Memory & its types presentation1Memory & its types presentation1
Memory & its types presentation1
Ā 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3
Ā 

Recently uploaded

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Ā 
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
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
Ā 
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
Ā 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
Ā 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
Ā 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
Ā 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
Ā 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
Ā 
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
Ā 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
Ā 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
Ā 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
Ā 
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
Ā 
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,Virag Sontakke
Ā 
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
Ā 

Recently uploaded (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Ā 
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
Ā 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
Ā 
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
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
Ā 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Ā 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Ā 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Ā 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
Ā 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
Ā 
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 šŸ”āœ”ļøāœ”ļø
Ā 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
Ā 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
Ā 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
Ā 
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
Ā 
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
Ā 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Ā 
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
Ā 

3 computer memory

  • 1. COMPUTER MEMORY LECTURE # 03 (COMPUTER APPLICATIONS)
  • 2. INTRODUCTION ā€¢ The computer memory stores different kinds of data like input data, output data, intermediate results, etc., and the instructions. ā€¢ Storage may be required for a limited period of time, instantly, or, for an extended period of time. ā€¢ The cache memory, registers, and RAM are fast memories and store the data and instructions temporarily during the processing of data and instructions. ā€¢ The secondary memory like magnetic disks and optical disks have large storage capacities and store the data and instructions permanently, but are slow memory devices. ā€¢ The memories are organized in the computer in a manner to achieve high levels of performance at the minimum cost.
  • 3. MEMORY REPRESENTATION ā€¢ Binary digit or bit is the basic unit of memory. ā€¢ A bit is a single binary digit, i.e., 0 or 1 and is the smallest unit of representation of data in a computer. ā€¢ A group of 8 bits form a byte. One byte is the smallest unit of data that is handled by the computer. ā€¢ One byte can store 28, i.e., 256 different combinations of bits, and thus can be used to represent 256 different symbols. ā€¢ In a byte, the different combinations of bits fall in the range 00000000 to 11111111. ā€¢ A group of bytes can be further combined to form a word. A word can be a group of 2, 4 or 8 bytes.
  • 4. MEMORY REPRESENTATION ā€¢ 1 bit = 0 or 1 ā€¢ 1 Byte (B) = 8 bits ā€¢ 1 Kilobyte (KB) = 210 Bytes = 1024 bytes ā€¢ 1 Megabyte (MB) = 220 Bytes = 1024KB ā€¢ 1 Gigabyte (GB) = 230 Bytes = 1024 MB = 1024 *1024 KB ā€¢ 1 Terabyte (TB) = 240 Bytes = 1024 GB = 1024 * 1024 *1024 KB ā€¢ Memory is logically organized as a linear array of locations. ā€¢ For a processor, the range of the memory addresses is 0 to the maximum size of memory. Figure 3.1 shows the organization of a 16 MB block of memory for a processor with a 32-bit word length.
  • 5. MEMORY REPRESENTATION Figure 3.1 Organization of memory
  • 6. MEMORY HIERARCHY ā€¢ The memory is characterized on the basis of two key factors: 1. capacity and 2. access time. ā€¢ Capacity is the amount of information (in bits) that a memory can store. ā€¢ Access time is the time interval between the read/ write request and the availability of data. The lesser the access time, the faster is the speed of memory. ā€¢ The hierarchy of the different memory types is shown in Figure 3.2.
  • 8. MEMORY HIERARCHY ā€¢ The internal memory and external memory are the two broad categories of memory used in the computer. Internal Memory ā€¢ The key features of internal memory are: (1) limited storage capacity, (2) temporary storage, (3) fast access, and (4) high cost. ā€¢ Registers, cache memory, and primary memory constitute the internal memory.
  • 9. MEMORY HIERARCHY ā€¢ Registers are the fastest and the most expensive among all the memory types. The registers are located inside the CPU, and are directly accessible by the CPU. The speed of registers is between 1ā€”2 ns (nanosecond). The sum of the size of registers is about 200B. ā€¢ Cache memory is next in the hierarchy and is placed between the CPU and the main memory. The speed of cache is between 2ā€”10 ns. The cache size varies between 32 KB to 4MB. ā€¢ Any program or data that has to be executed must be brought into RAM from the secondary memory. Primary memory is relatively slower than the cache memory. The speed of RAM is around 60ns. The RAM size varies from 512KB to 12GB.
  • 10. MEMORY HIERARCHY Secondary Memory ā€¢ The key features of secondary memory storage devices are: (1) very high storage capacity, (2) permanent storage (non-volatile), unless erased by user, (3) relatively slower access, (4) stores data and instructions that are not currently being used by CPU but may be required later for processing, and (5) cheapest among all memory. ā€¢ The storage devices consist of two partsā€”drive and device. For example magnetic tape drive and magnetic tape, magnetic disk drive and disk, and, optical disk drive and disk.
  • 11. MEMORY HIERARCHY ā€¢ The speed of magnetic disk is around 60ms. The capacity of a hard disk ranges from 500 GB to 3000 GB (3 Tera Bytes). ā€¢ The speed of memories is dependent on the kind of technology used for the memory. ā€¢ The registers, cache memory and primary memory are semiconductor memories. They do not have any moving parts and are fast memories. ā€¢ The secondary memory is magnetic or optical memory, has moving parts and has slow speed. ā€¢ To get the fastest speed of memory with largest capacity and least cost, the fast memory is located close to the processor. The secondary memory, which is not as fast, is used to store information permanently, and is placed farthest from the processor.
  • 12. MEMORY HIERARCHY ā€¢ With respect to CPU, the memory is organized as follows: ļƒ˜Registers are placed inside the CPU (small capacity, high cost, very high speed) ļƒ˜Cache memory is placed next in the hierarchy (inside and outside the CPU) ļƒ˜Primary memory is placed next in the hierarchy ļƒ˜Secondary memory is the farthest from CPU (large capacity, low cost, low speed)
  • 13. MEMORY HIERARCHY Figure 3.3 CPU and the memory
  • 14. CPU REGISTERS ā€¢ Registers are very high-speed storage areas located inside the CPU. ā€¢ After CPU gets the data and instructions from the cache or RAM, the data and instructions are moved to the registers for processing. ā€¢ Registers are manipulated directly by the control unit of CPU during instruction execution. That is why registers are often referred to as the CPUā€™s working memory. ā€¢ Since CPU uses registers for the processing of data, the number of registers in a CPU and the size of each register affect the power and speed of a CPU. ā€¢ The more the number of registers (ten to hundreds) and bigger the size of each register (8 bits to 64 bits), the better it is.
  • 15. CACHE MEMORY ā€¢ Cache memory is placed in between the CPU and the RAM. ā€¢ Cache memory is a fast memory, faster than the RAM. When the CPU needs an instruction or data during processing, it first looks in the cache. ā€¢ If the information is present in the cache, it is called a cache hit, and the data or instruction is retrieved from the cache. ā€¢ If the information is not present in cache, then it is called a cache miss and the information is then retrieved from RAM. ā€¢ The content of cache is decided by the cache controller (a circuit on the motherboard). The most recently accessed information or instructions help the controller to guess the RAM locations that may be accessed next. ā€¢ To get good system performance, the number of hits must be greater than the misses. The two main factors that affect the performance of cache are its size and level (L1, L2 and L3).
  • 16. PRIMARY MEMORY ā€¢ Primary memory is the main memory of computer. It is a chip mounted on the motherboard of computer. ā€¢ Primary memory is categorized into two main types: 1. Random Access Memory (RAM), and 2. Read Only Memory (ROM) ā€¢ RAM is used for the temporary storage of input data, output data and intermediate results. The input data entered into the computer using the input device, is stored in RAM for processing. ā€¢ After processing, the output data is stored in RAM before being sent to the output device. Any intermediate results generated during the processing of program are also stored in RAM. ā€¢ Unlike RAM, the data once stored in ROM either cannot be changed or can only be changed using some special operations. Therefore, ROM is used to store the data that does not require a change.
  • 17. RANDOM ACCESS MEMORY ā€¢ RAM is used to store data and instructions during the operation of computer. ā€¢ The data and instructions that need to be operated upon by CPU are first brought to RAM from the secondary storage devices like the hard disk. ā€¢ CPU interacts with RAM to get the data and instructions for processing. ā€¢ RAM loses information when the computer is powered off. It is a volatile memory. ā€¢ RAM provides random access to the stored bytes, words, or larger data units. This means that it requires same amount of time to access information from RAM, irrespective of where it is located in it. ā€¢ RAM can be read from and written to with the same speed. ā€¢ The size of RAM is limited due to its high cost. The size of RAM is measured in MB or GB.
  • 18. RANDOM ACCESS MEMORY ā€¢ The performance of RAM is affected by: ā€¢ Access speed (how quickly information can be retrieved). The speed of RAM is expressed in nanoseconds. ā€¢ Data transfer unit size (how much information can be retrieved in one request). ā€¢ RAM affects the speed and power of a computer. More the RAM, the better it is. ā€¢ Nowadays, computers generally have 1 GB to 12 GB of RAM. ā€¢ RAM is a microchip implemented using semiconductors. ā€¢ There are two categories of RAM, depending on the technology used to construct a RAM: (1) Dynamic RAM (DRAM), and (2) Static RAM (SRAM).
  • 19. RANDOM ACCESS MEMORY ā€¢ DRAM is the most common type of memory chip. DRAM is mostly used as main memory since it is small and cheap. ā€¢ It uses transistors and capacitors. The transistor and capacitor are paired to make a memory cell. ā€¢ DRAM must be refreshed continually to store information. For this, a memory controller is used. ā€¢ DRAM gets its name from the refresh operation that it requires to store the information; otherwise it will lose what it is holding. The refresh operation occurs automatically thousands of times per second. DRAM is slow because the refreshing takes time. ā€¢ Access speed of DRAM ranges from 50 to 150 ns.
  • 20. RANDOM ACCESS MEMORY ā€¢ SRAM chip is usually used in cache memory due to its high speed. ā€¢ SRAM uses multiple transistors (four to six), for each memory cell. It does not have a capacitor in each cell. ā€¢ A SRAM memory cell has more parts so it takes more space on a chip than DRAM cell. ā€¢ It does not need constant refreshing and therefore is faster than DRAM. ā€¢ SRAM is more expensive than DRAM, and it takes up more space. ā€¢ It stores information as long as it is supplied with power. ā€¢ SRAM are easier to use and very fast. ā€¢ The access speed of SRAM ranges from 2ā€“10 nanosecond.
  • 21. READ ONLY MEMORY ROM is a non-volatile primary memory. It does not lose its content when the power is switched off. The features of ROM are described as follows: ā€¢ ROM has only read capability and no write capability. After the information is stored in ROM, it is permanent and cannot be corrected. ā€¢ ROM comes programmed by the manufacturer. It stores standard processing programs that permanently reside in the computer. ROM stores the data needed for the start up of the computer. The instructions that are required for initializing the devices attached to a computer are stored in ROM. ā€¢ The ROM memory chip (Figure 3.5) stores the Basic Input Output System (BIOS). BIOS provides the processor with the information required to boot the system. It does not load from disk but instead is stored in a ROM memory chip.
  • 22. READ ONLY MEMORY ā€¢ When the computer is turned on, the BIOS does the following things: 1. Power On Self Test (POST) It checks that the major hardware components are working properly. 2. BIOS setup program, lets the user set the many functions that control how the computer works. 3. Bootstrap Loader is a program whose purpose is to start the computer software for operation when the power is turned on. It loads the operating system into RAM and launches it ā€¢ ROMs are of different kinds. They vary in the number of re- writes and the method used for the re-writing. ā€¢ PROM (Programmable ROM) can be programmed with a special tool, but after it has been programmed the contents cannot be changed.
  • 23. READ ONLY MEMORY ā€¢ EPROM (Erasable Programmable ROM) can be programmed in a similar way as PROM, but it can be erased by exposing it to ultra violet light and re-programmed ā€¢ EEPROM (Electrically Erasable Programmable ROM) memories can be erased by electric charge and re-programmed. ā€¢ Flash Memory is a kind of semiconductor-based non- volatile, rewritable computer memory that can be electrically erased and reprogrammed. It is a specific type of EEPROM. ā€¢ Examples of flash memories are memory used in digital camera, mobile phone, printer, laptop computer, and MP3 players.
  • 24. SECONDARY MEMORY ā€¢ In addition to primary memory, an auxiliary or secondary memory is required by a computer. The secondary memory is also called the storage device of computer. ā€¢ In comparison to the primary memory, the secondary memory stores much larger amounts of data and information (for example, an entire software program) for extended periods of time. ā€¢ The data and instructions stored in secondary memory must be fetched into RAM before processing is done by CPU. ā€¢ Magnetic tape drives, magnetic disk drives, optical disk drives and magneto-optical disk drives are the different types of storage devices.
  • 25. ACCESS TYPES OF SECONDARY MEMORY / STORAGE DEVICES ā€¢ The information stored in storage devices can be accessed in two ways: 1. Sequential access 2. Direct access ā€¢ Sequential Access Devices: Sequential access means that computer must run through the data in sequence, starting from the beginning, in order to locate a particular piece of data. They are slow. ā€¢ Direct Access Devices: Direct access devices are the ones in which any piece of data can be retrieved in a non-sequential manner by locating it using the dataā€™s address. ā€¢ Based on access, magnetic tapes are sequential access devices, and, magnetic disks, optical disk and magneto-optical disks are direct access devices.
  • 26. MAGNETIC TAPE ā€¢ Magnetic tape is a plastic tape with magnetic coating (Figure 3.7). It is a storage medium on a large open reel or in a smaller cartridge or cassette (like a music cassette). ā€¢ Magnetic tapes are cheaper storage media. They are durable, can be written, erased, and re-written. Magnetic tapes are sequential access devices. ā€¢ Data is recorded on tape in the form of blocks, where a block consists of a group of data also called as records. Each block is read continually.
  • 27. MAGNETIC DISK ā€¢ Magnetic disk is a direct access secondary storage device. It is a thin plastic or metallic circular plate coated with magnetic oxide and encased in a protective cover. ā€¢ Data is stored on magnetic disks as magnetized spots. The presence of a magnetic spot represents the bit 1 and its absence represents the bit 0. ā€¢ The features of magnetic disk are cheap, portable, fast, reliable and can store a large amount of data
  • 28. FLOPPY DISK ā€¢ Floppy disk (FD) is a flat, round, single disk made of Mylar plastic and enclosed in square plastic jacket (Figure 3.11). ā€¢ Floppy Disk Drive (FDD) is the disk drive for floppy disk. ā€¢ The floppy disk is inserted into the floppy disk drive to read or write data to it.
  • 29. HARD DISK ā€¢ A hard disk (HD) consists of one or more platters divided into concentric tracks and sectors. ā€¢ It is mounted on a central spindle, like a stack. It can be read by a read/write head that pivots across the rotating disks. ā€¢ The data is stored on the platters covered with magnetic coating (Figure 3.12). Figure 3.12 Parts of hard disk
  • 30. OPTICAL DISK ā€¢ Optical disk is a flat and circular disk which is coated with reflective plastic material that can be altered by laser light. ā€¢ Optical disk does not use magnetism. The bits 1 and 0 are stored as spots that are relatively bright and light, respectively. Figure 3.15 Sectors and track in magnetic disk and optical disk
  • 31. CD-ROM ā€¢ Originally, Compact Disk (CD) was a popular medium for storing music. Now, it is used in computers to store data and is called Compact Disk-Read Only Memory (CD-ROM). ā€¢ CD-ROM is an optical disk that can only be read and not written on. ā€¢ CD-ROM is written on by the manufacturer of the CD-ROM using the laser light. ā€¢ A CD-ROM drive reads data from the compact disk. ā€¢ The storage density of CD-ROM is very high and cost is low as compared to floppy disk and hard disk ā€¢ It is a commonly used medium for distributing software and large data.
  • 32. DVD-ROM ā€¢ Digital Video Disk-Read Only Memory (DVD-ROM) is an optical storage device used to store digital video or computer data. ā€¢ DVDs look like CDs, in shape and physical size. ā€¢ It improves on CD technology. ā€¢ DVD-ROM uses both sides of the disk and special data compression technologies. The tracks for storing data are extremely small. ā€¢ Each side of DVD-ROM can store 4.7 GB of data, so a single DVD can store 9.4 GB of data.
  • 33. USING THE COMPUTER MEMORY The computer starts using the memory from the moment the computer is switched on, till the time it is switched off. The list of steps that the computer performs from the time it is switched on are: ā€¢ Turn the computer on. ā€¢ The computer loads data from ROM. It makes sure that all the major components of the computer are functioning properly. ā€¢ The computer loads the BIOS from ROM. The BIOS provides the most basic information about storage devices, boot sequence, security, plug and play capability and other items. ā€¢ The computer loads the OS from the hard drive into the systemā€™s RAM. CPU has immediate access to the OS as the critical parts of the OS are maintained in RAM as long as the computer is on. This enhances the performance and functionality of the overall system.
  • 34. USING THE COMPUTER MEMORY ā€¢ Now the system is ready for use. ā€¢ When you load or open an application it is loaded in the RAM. Since the CPU looks for information in the RAM, any data and instructions that are required for processing (read, write or update) is brought into RAM. ā€¢ The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. The shuffling of data between the CPU and RAM happens millions of times every second. ā€¢ When you save a file and close the application, the file is written to the secondary memory as specified by you. The application and any accompanying files usually get deleted from RAM to make space for new data. If the files are not saved to a storage device before being closed, they are lost.