Tips & Tricks

What are RAM and ROM? and Difference

Memory is the most essential element for a computing system because without RAM & ROM computer cannot perform any tasks.

Computer memory has two basic types – Primary memory(RAM and ROM) and Secondary memory(hard disk, CD, etc.).

Random Access Memory (RAM) is volatile( when the power supply is present then stores data ) memory and Read-Only Memory (ROM) is primary-non-volatile( when power is note supply it will stores data ) memory.

ram and rom

windows shortcuts

1. Random Access Memory (RAM) –

  • It is also known as read-write or the main or the primary memory.
  • When any program run, that program stores in RAM.
  • It is a volatile memory, which means that data gets lost when the power supply is cut.
  • RAM is furthered classified into two types- SRAM (Static Random Access Memory) and DRAM (Dynamic Random Access Memory).
difference between ram and rom

2. Read Only Memory (ROM) –

  • ROM Stores Important program which essential to boot the computer.
  • It is not volatile( when the power supply is not present data is not erased ).
  • Used in calculators and various peripheral devices.
  • ROM is furthered classified into 3 types- PROMEPROM, and EEPROM.

Types of Read Only Memory (ROM) –

  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.
  3. EEPROM (Electrically erasable programmable read-only memory) – The data can be erased by applying an electric field, with no need for ultraviolet light.
what is ram and rom

Difference between RAM and ROM

The following table’s differentiates between ROM and RAM:

retentionRAM is a volatile type of memory, it stores data until the power supply is present.ROM is a non-volatile memory type which stores data after power is not present
Working Data stored in RAM can be changedData stored in ROM can’t be read.
UseUsed to store the data that has to be currently processed by CPU temporarily.It stores the program required during booting of the computer.
SpeedIt is a very speed memory.It is a very slow memory.
CPU InteractionThe CPU can access the data stored on RAM and changed.The CPU will not access the data stored on it untill the data is stored in RAM.
Used inCPU CacheMicro-controllers
AccessibilityThe data is easily accessible.The data is not as easily accessible as in RAM.
CostVery Costlier.cheaper.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

windows shortcuts

One Response

  1. Arpit Mishra

Leave a Comment