Open In App

Random Access Memory (RAM) and Read Only Memory (ROM)

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

Random Access Memory (RAM) is a type of computer memory that is used to temporarily store data that the computer is currently using or processing. RAM is volatile memory, which means that the data stored in it is lost when the power is turned off. RAM is typically used to store the operating system, application programs, and data that the computer is currently using.

Read Only Memory (ROM) is a type of computer memory that is used to permanently store data that does not need to be modified. ROM is non-volatile memory, which means that the data stored in it is retained even when the power is turned off. ROM is typically used to store the computer’s BIOS (basic input/output system), which contains the instructions for booting the computer, as well as firmware for other hardware devices.

Types of Memory

Memory is the most essential element of a computing system because without it computer can’t perform simple tasks. Both types of memory (RAM and ROM) are important for the computer, but they serve different purposes. RAM is used to store data that the computer is currently using, while ROM is used to store data that the computer needs to boot and operate. RAM is faster than ROM, as the data stored in it can be accessed and modified in any order, while data stored in ROM can only be read.

Computer memory is of two basic types: 

  1. Primary memory (RAM and ROM) 
  2. Secondary memory (Hard Drive, CD, etc). 
Classification of Computer Memory

Classification of Primary Memory

Random Access Memory (RAM)

  • It is also called read-write memory or the main memory or the primary memory.
  • The programs and data that the CPU requires during the execution of a program are stored in this memory.
  • It is a volatile memory as the data is lost when the power is turned off.
Read Only Memory

Read Only Memory

Types of Random Access Memory (RAM)

1. Static RAM: SRAM stands for Static Random Access Memory. It is a type of semiconductor which is widely used in computing devices and microprocessors.

2. Dynamic RAM: DRAM stands for Dynamic Random Access Memory. It is made of Capacitors and has smaller data life span than Static RAM. 

Difference between SRAM and DRAM

Difference between SRAM and DRAM

Advantages of Random Access Memory (RAM)

  • Speed: RAM is much faster than other types of storage, such as a hard drive or solid-state drive, which means that the computer can access the data stored in RAM more quickly.
  • Flexibility: RAM is volatile memory, which means that the data stored in it can be easily modified or deleted. This makes it ideal for storing data that the computer is currently using or processing.
  • Capacity: The capacity of RAM can be easily upgraded, which allows the computer to store more data in memory and thus improve performance.
  • Power Management: RAM consumes less power compared to hard drives, and solid-state drives, which makes it an ideal memory for portable devices.

Disadvantages of Random Access Memory (RAM)

  • Volatility: RAM is volatile memory, which means that the data stored in it is lost when the power is turned off. This can be a problem for important data that needs to be preserved, such as unsaved work or files that have not been backed up.
  • Capacity: The capacity of RAM is limited, and although it can be upgraded, it may still not be sufficient for certain applications or tasks that require a lot of memory.
  • Cost: RAM can be relatively expensive compared to other types of memory, such as hard drives or solid-state drives, which can make upgrading the memory of a computer or device more costly.

Read-Only Memory (ROM)

  • Stores crucial information essential to operate the system, like the program essential to boot the computer.
  • It is non-volatile.
  • Always retains its data.
  • Used in embedded systems or where the programming needs no change.
  • Used in calculators and peripheral devices.
  • ROM is further classified into four types- MROM, PROM, EPROM, and EEPROM
Read Only Memory

Read Only Memory

Types of Read-Only Memory (ROM) 

  1. PROM (Programmable Read-Only Memory)
  2. EPROM (Erasable Programmable Read Only Memory)
  3. EEPROM (Electrically Erasable Programmable Read Only Memory)
  4. MROM (Mask Read Only Memory)

1. PROM (Programmable read-only memory): It can be programmed by the user. Once programmed, the data and instructions in it cannot be changed. 

2. EPROM (Erasable Programmable read-only memory): It can be reprogrammed. To erase data from it, expose it to ultraviolet light. To reprogram it, erase all the previous data. 

3. EEPROM (Electrically erasable programmable read-only memory): The data can be erased by applying an electric field, with no need for ultraviolet light. We can erase only portions of the chip.

4. MROM(Mask ROM): Mask ROM is a kind of read-only memory, that is masked off at the time of production. Like other types of ROM, mask ROM cannot enable the user to change the data stored in it. If it can, the process would be difficult or slow.

Advantages of Read Only Memory (ROM)

  • Non-volatility: ROM is non-volatile memory, which means that the data stored in it is retained even when the power is turned off. This makes it ideal for storing data that does not need to be modified, such as the BIOS or firmware for other hardware devices.
  • Reliability: Because the data stored in ROM is not easily modified, it is less prone to corruption or errors than other types of memory.
  • Power Management: ROM consumes less power compared to other types of memory, which makes it an ideal memory for portable devices.

Disadvantages of Read Only Memory (ROM)

  • Limited Flexibility: ROM is read-only memory, which means that the data stored in it cannot be modified. This can be a problem for applications or firmware that need to be updated or modified.
  • Limited Capacity: The capacity of ROM is typically limited, and upgrading it can be difficult or expensive.
  • Cost: ROM can be relatively expensive compared to other types of memory, such as hard drives or solid-state drives, which can make upgrading the memory of a computer or device more costly.

Difference between RAM and ROM

Difference between RAM and ROM

Difference between RAM and ROM

For more differences, you can refer to the Difference between RAM and ROM.


Last Updated : 08 Jun, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads