Difference between SRAM and DRAM

Prerequisite – Different Types of RAM 

1. Static Random Access Memory (SRAM) : 
Data is stored in transistors and requires a constant power flow. Because of the continuous power, SRAM doesn’t need to be refreshed to remember the data being stored. SRAM is called static as no change or action i.e. refreshing is not needed to keep the data intact. It is used in cache memories. 
Advantage: Low power consumption and faster access speeds. 
Disadvantage: Less memory capacities and high costs of manufacturing. 

2. Dynamic Random Access Memory (DRAM) : 
Data is stored in capacitors. Capacitors that store data in DRAM gradually discharge energy, no energy means the data has been lost. So, a periodic refresh of power is required in order to function. DRAM is called dynamic as constant change or action i.e. refreshing is needed to keep the data intact. It is used to implement main memory. 
Advantage: Low costs of manufacturing and greater memory capacities. 
Disadvantage: Slow access speed and high power consumption. 

Difference between SRAM and DRAM : 


1. Transistors are used to store information in SRAM. Capacitors are used to store data in DRAM.
2. Capacitors are not used hence no refreshing is required. To store information for a longer time, contents of the capacitor needs to be refreshed periodically.
3. SRAM is faster as compared to DRAM. DRAM provides slow access speeds.
4. These are expensive. These are cheaper.
5. SRAMs are low density devices. DRAMs are high density devices.
6. These are used in cache memories. These are used in main memories.


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.

My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.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 : asishnayak0000