Class 11 • Computer Science

Memory Concepts - Notes | Class 11 Computer Science

Chapter 5 - Premium Comprehensive Study Notes

What is Computer Memory?

Computer memory is the part of a computer that is used to store data, instructions, and information. For example, when you open a document, the computer stores the data temporarily in memory while you are working on it

Definition:
Computer memory is a storage area in a computer where data, instructions, and information are stored for processing and future use.

Types of Computer Memory

Computer memory can broadly be divided into two main types:
1. Primary Memory
2. Secondary Memory

Primary Memory

Primary memory is the main memory of a computer. It stores data and instructions that are currently being used by the CPU. Primary memory is the memory that the CPU can use directly. The CPU can access primary memory much faster than secondary storage.

Primary memory mainly includes:
• RAM
• ROM
• Cache Memory

RAM

RAM stands for Random Access Memory. It is a type of primary memory that temporarily stores the data and instructions currently being used by the computer. When you open a program, such as a web browser or a word processor, the required data is loaded into RAM.

Example:
Suppose you open Microsoft Word and start typing a document. The information you are currently working on is stored in RAM while the program is running. RAM however, is a volatile memory. It means when the computer is turned off, everything stored in RAM is erased.

Types of RAM

There are two main types of RAM:

1. SRAM
2. DRAM

SRAM

SRAM stands for Static Random Access Memory. It stores data using electronic circuits called flip-flops. As long as power is supplied, SRAM can retain the stored data.It does not need to refresh its data again and again.SRAM is faster and more expensive than DRAM.

Features of SRAM

• Very fast
• More expensive
• Does not need constant refreshing
• Uses more space
• Commonly used for cache memory
Example
The cache memory inside a processor commonly uses SRAM technology.

DRAM

DRAM stands for Dynamic Random Access Memory.It stores each bit of data in a memory cell containing a capacitor and a transistor. The stored information needs to be refreshed regularly.

Features of DRAM

• Slower than SRAM
• Less expensive than SRAM
• Requires regular refreshing
• Can provide large storage capacity
• Commonly used as the main RAM of computers

Example

The memory modules installed in desktop computers and laptops are generally based on DRAM technology

ROM

ROM stands for Read Only Memory. It is a type of primary memory that stores instructions and data that normally do not change frequently. ROM is non-volatile, which means that it can retain its contents even when the power is switched off.

Features of ROM

• It is non-volatile
• Data remains stored even after the power is switched off.
• It is mainly used to store permanent or semi-permanent instructions.
• It is generally slower than cache memory.

Example

ROM contains important instructions used during the computer's startup process.

Types of ROM

The main types of ROM are:
1. PROM
2. EPROM
3. EEPROM

PROM

PROM stands for Programmable Read Only Memory.PROM is a type of ROM that can be programmed only once.After information is written into PROM, it cannot normally be erased or changed.

Example

Like writing with a permanent marker..

Remember:
PROM = Programmable once

EPROM

EPROM stands for Erasable Programmable Read Only Memory.

The information stored in EPROM can be erased and the chip can be programmed again. EPROM is erased by exposing it to ultraviolet (UV) light.

Example

EPROM was used in some older electronic systems where the stored program needed to be changed occasionally.

Remember:
EPROM = Erasable using UV light

EEPROM

EEPROM stands for Electrically Erasable Programmable Read Only Memory.

The contents of EEPROM can be erased and reprogrammed using electrical signals. Unlike EPROM, it does not require ultraviolet light for erasing.It can be rewritten many times.

Example

EEPROM technology is used in various electronic devices to store settings and firmware.

Remember:
EEPROM = Electrically erasable

Cache Memory

Cache memory is a small and very fast memory located close to or inside the CPU. It stores frequently used data and instructions so that the CPU can access them quickly. The CPU is much faster than RAM. Cache memory helps reduce the time the CPU has to wait for frequently needed information. This helps the computer work faster.

Levels of Cache

Modern processors commonly have different levels of cache:
• L1 Cache – Very small and very fast
• L2 Cache – Larger than L1 but comparatively slower
• L3 Cache – Larger than L2 and usually shared among processor cores
Remember: Cache memory helps the CPU access frequently used information quickly.

Secondary Memory

Secondary memory is used to store data and information permanently or for a long period. Unlike RAM, the information stored in secondary memory normally remains available even when the computer is switched off. It is also called secondary storage or auxiliary storage. It has much larger storage than primary memory.

Examples of secondary memory

• Hard Disk
• SSD
• Pen Drive
• CD
• DVD
• Blu-ray Disc
• Memory Card

Hard Disk

A hard disk is a storage device used to store large amounts of data. Traditional hard disk drives, called HDDs, use magnetic disks or platters to store information.

Uses of a hard disk

A hard disk can store:
• Operating systems
• Software
• Documents
• Photos
• Videos
• Music
• Other files
Example
A computer with a 1 TB hard disk can store a large amount of documents, photographs, videos, programs and other files.

Compact Disc (CD)

CD stands for Compact Disc. It is an optical storage medium used to store digital information. A standard CD can store approximately 700 MB of data.

Uses of CD

CDs were commonly used to store:
• Music
• Software
• Documents
• Photos

Example
A music album can be stored on an audio CD.

DVD

DVD stands for Digital Versatile Disc. It is an optical storage medium that looks like a CD but can store more data than a standard CD. A common single-layer DVD can store approximately 4.7 GB of data.

Uses of DVD

DVDs have been used for:
• Movies
• Software
• Educational content
• Data backup

Pen Drive

A pen drive, also called a USB flash drive, is a small portable storage device that uses flash memory.It can be connected to a computer through a USB port.

Uses of a pen drive

It can be used to:

• Transfer files
• Store documents
• Carry photos and videos
• Create backups
• Transfer software and other data

Blu-ray Disc

Blu-ray Disc is an optical storage medium that looks like a CD and DVD but is designed to store much more data than a CD or DVD. A standard single-layer Blu-ray Disc can store about 25 GB, while a dual-layer disc can store about 50 GB.

Uses of Blu-ray Disc

Blu-ray discs are mainly associated with:

• High-definition movies
• Large multimedia files
• Video games
• Large backups

Memory Card

A memory card is a small removable storage device that uses flash memory.

Memory cards are commonly used in:

• Smartphones
• Digital cameras
• Tablets
• Video cameras
• Other portable devices

Example

A digital camera may use a microSD or SD card to store photographs and videos.

Flash Memory

Flash memory is a type of non-volatile memory that can retain data even when the power is switched off. It is widely used in modern storage devices.

Examples

• Pen drives
• Memory cards
• SSDs

Flash memory is useful because it is fast, compact and does not require continuous power to retain stored information.

Primary Memory vs Secondary Memory

Primary Memory Secondary Memory
Stores data currently needed by the CPU Stores data for long-term use
It is directly accessed by the CPU. CPU does not normally access it directly.
It is generally faster. It is generally slower than primary memory.
It is volatile It is generally non-volatile.

System Software vs Application Software

System Software Application Software
Manages computer resources Performs tasks for users
Usually works in the background Usually used directly by the user
Essential for operating the computer Used according to the user's needs
Examples: Windows, Linux, device drivers Examples: Word, Excel, Chrome
Scroll to Top