Computer Memory
Memory
Computer memory refers to the storage system used to store data, instructions required during processing, intermediate results, and final output.
Computer memory can broadly be classified into two main types:
- Primary Memory
- Secondary Memory
1. Primary Memory
Primary memory, also called main memory or internal memory, stores data, programs, instructions, and intermediate results required during processing.
Primary memory is generally faster than secondary memory and can be directly accessed by the CPU.
2. Secondary Memory
Secondary memory, also known as external memory or auxiliary memory, is used for long-term or permanent storage of data and programs.
Examples include:
- Hard Disk Drive (HDD)
- Solid State Drive (SSD)
- USB Flash Drive
- DVD
- Memory Card
Cache Memory
Cache memory is a small, very fast semiconductor memory located close to or within the CPU.
It stores frequently used data and instructions so that the CPU can access them more quickly.
Cache memory helps reduce the time required to retrieve frequently accessed information from main memory.
The notes classify cache memory into:
- Internal Cache
- External Cache
Internal Cache
Internal cache is cache memory located inside or very close to the CPU.
The source describes Level 1 (L1) cache as an example of internal cache.
It is very fast and usually smaller in capacity.
External Cache
External cache refers in the source to cache memory located outside the CPU core.
It is described as larger but comparatively slower than internal cache.
Characteristics of Primary Memory
The main characteristics of primary memory are:
- It is generally volatile, except ROM.
- Its storage capacity is lower than secondary memory.
- It uses semiconductor technology.
- It is directly accessible by the CPU.
- It operates faster than secondary memory.
Types of Primary Memory
Primary memory can mainly be divided into:
- Random Access Memory (RAM)
- Read Only Memory (ROM)
Random Access Memory (RAM)
RAM stands for Random Access Memory.
RAM temporarily stores data and programs while the computer is running.
When a computer starts, the operating system and required programs are loaded from secondary storage into RAM so that the CPU can access them quickly.
RAM is generally volatile, which means its contents are lost when the power is turned off.
Types of RAM
The two main types of RAM discussed in the chapter are:
- SRAM
- DRAM
Static RAM (SRAM)
SRAM stands for Static Random Access Memory.
SRAM stores data using flip-flop circuits.
It retains data as long as power is supplied and does not require periodic refreshing in the same way as DRAM.
SRAM is commonly associated with high-speed cache memory.
Dynamic RAM (DRAM)
DRAM stands for Dynamic Random Access Memory.
DRAM stores data using capacitors.
The stored information must be refreshed periodically to maintain the data.
DRAM is commonly used as main system memory.
Difference Between SRAM and DRAM
| SRAM | DRAM |
|---|---|
| Stands for Static Random Access Memory. | Stands for Dynamic Random Access Memory. |
| Uses flip-flops to store data. | Uses capacitors to store data. |
| Faster than DRAM. | Slower than SRAM. |
| Does not require periodic refreshing. | Requires periodic refreshing. |
| More expensive. | Comparatively cheaper. |
| Has lower storage density. | Has higher storage density. |
| Usually has lower capacity. | Usually has higher capacity. |
| Commonly used for cache memory. | Commonly used for main memory. |
Read Only Memory (ROM)
ROM stands for Read Only Memory.
ROM is non-volatile memory used to store important instructions and control programs that must remain available even when the computer is turned off.
It may contain instructions required for tasks such as starting or booting the computer.
Types of ROM
The types of ROM discussed in the chapter are:
- PROM
- EPROM
- EEPROM
PROM
PROM stands for Programmable Read Only Memory.
PROM can be programmed by the user only once.
After information has been written to PROM, it cannot normally be erased and rewritten.
EPROM
EPROM stands for Erasable Programmable Read Only Memory.
EPROM can be programmed and later erased.
The stored information can be erased by exposing the memory chip to ultraviolet light, after which it can be programmed again.
EEPROM
EEPROM stands for Electrically Erasable Programmable Read Only Memory.
EEPROM can be erased and reprogrammed electrically.
Unlike EPROM, it does not require ultraviolet light for erasing stored information.
Difference Between RAM and ROM
| RAM | ROM |
|---|---|
| Stands for Random Access Memory. | Stands for Read Only Memory. |
| Generally volatile. | Non-volatile. |
| Data is normally lost when power is turned off. | Data remains stored without power. |
| Supports regular read and write operations. | Mainly stores data or instructions intended to remain available. |
| Commonly used for temporary working data. | Commonly used for permanent or semi-permanent instructions. |
| Types include SRAM and DRAM. | Types include PROM, EPROM, and EEPROM. |
Secondary Memory
Secondary memory is used for long-term or permanent storage of data and programs.
It is also known as:
- External Memory
- Auxiliary Memory
Examples include:
- Hard Disk
- SSD
- USB Flash Drive
- DVD
- Memory Card
Characteristics of Secondary Memory
The important characteristics of secondary memory are:
- It stores data and programs for long-term use.
- It is non-volatile.
- It generally provides larger storage capacity than primary memory.
- It is not directly accessed by the CPU in the same way as main memory.
- Its read/write speed is generally slower than primary memory.
- Some secondary storage devices can be used to transfer data between computers.
Types of Secondary Memory
The main secondary storage technologies covered in this chapter are:
- Magnetic Storage
- Solid-State Storage
- Optical Storage
- Flash Memory
Magnetic Storage
Magnetic storage uses magnetic properties to store digital data.
The storage surface is coated with magnetic material.
The source discusses two major forms of magnetic storage:
- Magnetic Tape
- Magnetic Disk
Magnetic Tape
Magnetic tape is a storage medium consisting of a thin plastic ribbon coated with magnetic material.
It can store different types of information, including:
- Text
- Audio
- Video
- Backup data
Magnetic tape is mainly associated with sequential access to stored information.
Magnetic Disk
A magnetic disk uses a magnetized surface to store and retrieve digital information.
Data is organized on the disk into areas such as tracks and sectors.
Examples include:
- Hard Disk
- Floppy Disk
Hard Disk
A Hard Disk Drive (HDD) is a secondary storage device that uses magnetic technology to store and retrieve digital data.
Inside a hard disk are one or more rotating platters coated with magnetic material.
A read/write head moves across the platters to access or store information.
Floppy Disk
A floppy disk is a removable magnetic storage medium that was widely used for storing and transferring data in earlier computer systems.
Common floppy disk sizes included:
- 5.25-inch
- 3.5-inch
Floppy disks were eventually replaced by technologies with greater capacity and convenience, such as optical discs, USB flash drives, and other modern storage media.
Solid State Drive (SSD)
An SSD stands for Solid State Drive.
An SSD stores data using integrated circuits, generally using flash memory.
Unlike a traditional hard disk, an SSD does not contain spinning disks or other major moving mechanical parts.
This makes SSDs generally:
- Faster
- More resistant to mechanical shock
- Quieter in operation
- Less prone to mechanical failure than traditional HDDs
Optical Storage
Optical storage uses laser technology to read or write data on optical discs.
Common optical storage media include:
- CD
- DVD
- Blu-ray Disc
CD – Compact Disc
CD stands for Compact Disc.
A standard CD commonly stores up to approximately 700 MB of data.
CDs have been used for:
- Music
- Software
- Documents
- Other digital content
Types of CD
CD-R
CD-R stands for Compact Disc Recordable.
It allows data to be recorded onto a blank disc, generally only once.
CD-ROM
CD-ROM stands for Compact Disc Read Only Memory.
The information is normally prerecorded and intended mainly for reading.
CD-RW
CD-RW stands for Compact Disc Rewritable.
It allows data to be erased and recorded again multiple times.
DVD – Digital Versatile Disc
DVD stands for Digital Versatile Disc.
DVDs provide higher storage capacity than CDs.
The source gives typical capacities such as:
- 4.7 GB for a single-layer DVD
- 8.5 GB for a dual-layer DVD
DVDs are commonly associated with:
- Movies
- Software
- Larger digital files
Blu-ray Disc
A Blu-ray Disc is an optical storage medium with greater storage capacity than CDs and DVDs.
The source gives capacities such as:
- 25 GB for a single-layer disc
- Higher capacities for multi-layer discs
Blu-ray discs have commonly been used for:
- High-definition video
- Large data files
- Backups
- Archives
Flash Memory
Flash memory is a type of non-volatile semiconductor storage that can be electrically erased and reprogrammed.
It is used in devices such as:
- USB Flash Drives
- Memory Cards
- SSDs
- Embedded Devices
Flash memory retains stored information even when electrical power is removed.
Advantages of Flash Memory
Some advantages of flash memory are:
- It is non-volatile.
- It can provide compact and portable storage.
- It generally consumes less power than traditional mechanical hard drives.
- It produces less heat than many mechanical storage systems.
- It contains no moving parts.
Pen Drive
A pen drive, also known as a:
- USB Flash Drive
- Thumb Drive
- Jump Drive
is a small portable storage device that uses flash memory.
It normally connects to a computer through a USB interface.
Pen drives are commonly used to:
- Store files
- Transfer data
- Carry documents
- Create portable backups
Memory Card
A memory card is a small portable flash-storage device.
It is commonly used in electronic devices such as:
- Smartphones
- Digital Cameras
- Tablets
- Portable Gaming Devices
Memory cards may be used to increase device storage or transfer information between compatible devices.
Difference Between Primary and Secondary Memory
| Primary Memory | Secondary Memory |
|---|---|
| Also called main or internal memory. | Also called external or auxiliary memory. |
| Usually used during active processing. | Used mainly for long-term storage. |
| Generally faster. | Generally slower. |
| Usually has lower storage capacity. | Usually has larger storage capacity. |
| Mostly volatile, except ROM. | Non-volatile. |
| Directly accessible by the CPU. | Data normally passes through the memory/storage system before CPU processing. |
| Examples: RAM, ROM. | Examples: HDD, SSD, DVD, USB drive. |
Quick Revision
Computer Memory
Computer memory stores data, instructions, intermediate results, and output.
Main Types
- Primary Memory
- Secondary Memory
Primary Memory
Primary memory is directly accessible to the CPU and is generally faster.
Types
- RAM
- ROM
RAM
RAM is temporary working memory.
Types
- SRAM
- DRAM
ROM
ROM is non-volatile memory used for storing important instructions.
Types
- PROM
- EPROM
- EEPROM
Cache Memory
Cache is a small, high-speed memory used to store frequently accessed data and instructions.
Secondary Memory
Secondary memory provides long-term storage.
Examples
- HDD
- SSD
- CD
- DVD
- Blu-ray
- USB Flash Drive
- Memory Card
Magnetic Storage
Examples:
- Magnetic Tape
- Hard Disk
- Floppy Disk
Optical Storage
Examples:
- CD
- DVD
- Blu-ray Disc
Flash Memory
Examples:
- Pen Drive
- Memory Card
- SSD
Important Exam Points
- Computer memory stores data and instructions.
- Memory is mainly classified into primary and secondary memory.
- Primary memory is faster than secondary memory.
- Primary memory is directly accessible to the CPU.
- RAM is volatile.
- ROM is non-volatile.
- SRAM is faster and more expensive than DRAM.
- DRAM requires periodic refreshing.
- PROM can generally be programmed once.
- EPROM can be erased using ultraviolet light.
- EEPROM can be erased electrically.
- Secondary memory is used for long-term storage.
- Magnetic tape and magnetic disks are magnetic storage devices.
- HDD uses magnetic platters.
- SSD uses semiconductor storage and contains no spinning disk.
- CDs, DVDs, and Blu-ray discs are optical storage media.
- CD-R is recordable once.
- CD-ROM is mainly read-only.
- CD-RW can be erased and rewritten.
- Flash memory is non-volatile.
- Pen drives and memory cards use flash memory.
Discussion
Share a helpful question, idea, or explanation with other students.