Prerequisite – Types of computer memory (RAM and ROM)
Random Access Memory (RAM) is used to store the programs and data being used by the CPU in real-time. The data on the random access memory can be read, written, and erased any number of times. RAM is a hardware element where the data being currently used is stored. It is a volatile memory. Types of RAM:
- Static RAM, or (SRAM) which stores a bit of data using the state of a six transistor memory cell.
- Dynamic RAM, or (DRAM) which stores a bit data using a pair of transistor and capacitor which constitute a DRAM memory cell.
Read Only Memory (ROM) is a type of memory where the data has been prerecorded. Data stored in ROM is retained even after the computer is turned off ie, non-volatile. Types of ROM:
- Programmable ROM, where the data is written after the memory chip has been created. It is non-volatile.
- Erasable Programmable ROM, where the data on this non-volatile memory chip can be erased by exposing it to high-intensity UV light.
- Electrically Erasable Programmable ROM, where the data on this non-volatile memory chip can be electrically erased using field electron emission.
- Mask ROM, in which the data is written during the manufacturing of the memory chip.
The following table differentiates ROM and RAM:
|Data retention||RAM is a volatile memory which could store the data as long as the power is supplied.||ROM is a non-volatile memory which could retain the data even when power is turned off.|
|Working type||Data stored in RAM can be retrieved and altered.||Data stored in ROM can only be read.|
|Use||Used to store the data that has to be currently processed by CPU temporarily.||It stores the instructions required during bootstrap of the computer.|
|Speed||It is a high-speed memory.||It is much slower than the RAM.|
|CPU Interaction||The CPU can access the data stored on it.||The CPU can not access the data stored on it unless the data is stored in RAM.|
|Size and Capacity||Large size with higher capacity.||Small size with less capacity.|
|Used as/in||CPU Cache, Primary memory.||Firmware, Micro-controllers|
|Accessibility||The data stored is easily accessible||The data stored is not as easily accessible as in RAM|
|Cost||Costlier||cheaper than 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.
- Random Access Memory (RAM) and Read Only Memory (ROM)
- Difference between CD-ROM and Magnetic Disks
- Difference between Random Access Memory (RAM) and Hard Disk Drive (HDD)
- Difference between Random Access Memory (RAM) and Content Addressable Memory (CAM)
- Difference between RAM and SRAM
- Difference between RAM and Cache
- Classification and Programming of Read-Only Memory (ROM)
- Reading data from a CD-ROM
- Different Types of RAM (Random Access Memory )
- Sorting larger file with smaller RAM
- Magnetic Random Access Memory (M-RAM)
- RAM Full Form
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference and similarities between HashSet, LinkedHashSet and TreeSet in Java
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between User Level thread and Kernel Level thread
- Difference between Priority Inversion and Priority Inheritance
- What's difference between CPU Cache and TLB?
- What’s difference between 1's Complement and 2's Complement?
- Difference between grep and fgrep command
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : divyanshu_gupta1