Memory is the most essential element for a computing system because without RAM & ROM computer cannot perform any tasks.
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.
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).
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- PROM, EPROM, and EEPROM.
Types of Read Only Memory (ROM) –
- PROM (Programmable read-only memory) – It can be programmed by the user. Once programmed, the data and instructions in it cannot be changed.
- EPROM (Erasable Programmable read-only memory) – It can be reprogrammed. To erase data from it, expose it to ultraviolet light.
- EEPROM (Electrically erasable programmable read-only memory) – The data can be erased by applying an electric field, with no need for ultraviolet light.
Difference between RAM and ROM
The following table’s differentiates between ROM and RAM:
|retention||RAM 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 changed||Data stored in ROM can’t be read.|
|Use||Used to store the data that has to be currently processed by CPU temporarily.||It stores the program required during booting of the computer.|
|Speed||It is a very speed memory.||It is a very slow memory.|
|CPU Interaction||The 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 in||CPU Cache||Micro-controllers|
|Accessibility||The data is easily accessible.||The data is not as easily accessible as in RAM.|
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.