The Wayback Machine - https://web.archive.org/web/20240926152230/https://www.geeksforgeeks.org/difference-between-sram-and-dram/
Open In App

Difference between SRAM and DRAM

Last Updated : 26 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

SRAM and DRAM are two types of RAMs. SRAM i.e., static RAM is RAM in which data is stored in transistors in the form of voltage. DRAM i.e., dynamic RAM is RAM in which data is stored in capacitors in the form of electric charges. The SRAM is faster and expensive whereas DRAM is slower and less expensive. SRAM is used as cache memory whereas DRAM is used as main memory in computer systems. In this article, we will explore the difference between static RAM and dynamic RAM.

What is RAM?

RAM (Random Access Memory) is Computer Memory that is directly accessible by the CPU. RAM stores temporary data, that is in case of power loss, the stored information gets lost. It stores the data which is currently processing by the CPU. The data which is easily modifiable are generally stored in the RAM. RAM is of two types:

  1. Static Random Access Memory (SRAM)
  2. Dynamic Random Access Memory (DRAM)

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. 

Static RAM

Static RAM

Characteristics of Static RAM

  • Static RAM is much faster than DRAM.
  • Static RAM takes less power to perform.

Advantages of Static RAM

  • Static RAM has low power consumption.
  • Static RAM has faster access speeds than DRAM.
  • Static RAM helps in creating a speed-sensitive cache.

Disadvantages of Static RAM

  • Static RAM has less memory capacity.
  • Static RAM has high costs of manufacturing than DRAM.
  • Static Ram comprises of more complex design.

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(change is continuously happening) i.e. refreshing is needed to keep the data intact. It is used to implement main memory. 

Dynamic RAM

Dynamic RAM

Characteristics of Dynamic RAM

  • Dynamic RAM is slower in comparison to SRAM.
  • Dynamic RAM is less costly than SRAM.
  • Dynamic RAM has high power consumption.

Advantages of Dynamic RAM

  • Dynamic RAM has Low costs of manufacturing than SRAM.
  • Dynamic RAM has greater memory capacities.

Disadvantages of Dynamic RAM

  • Dynamic RAM has a slow access speed.
  • Dynamic RAM has high power consumption.
  • Dynamic RAM data can be lost in case of Power Loss.

Difference Between Static RAM and Dynamic RAM

The table below represents the difference between SRAM and DRAM.

SRAM DRAM

It stores information as long as the power is supplied. 

It stores information as long as the power is supplied or a few milliseconds when the power is switched off.

Transistors are used to store information in SRAM.

Capacitors are used to store data in DRAM.

Capacitors are not used hence no refreshing is required.

To store information for a longer time, the contents of the capacitor need to be refreshed periodically.

SRAM is faster compared to DRAM.

DRAM provides slow access speeds.

It does not have a refreshing unit. 

It has a refreshing unit. 

These are expensive.

These are cheaper.

SRAMs are low-density devices.

DRAMs are high-density devices.

In this bit are stored in voltage form.

In this bit is stored in the form of electric energy.

These are used in cache memories.

These are used in main memories.

Consumes less power and generates less heat.

Uses more power and generates more heat.

SRAMs has lower latency DRAM has more latency than SRAM
SRAMs are more resistant to radiation than DRAM DRAMs are less resistant to radiation than SRAMs 
SRAM has higher data transfer rate DRAM has lower data transfer rate
SRAM is used in high-speed cache memory DRAM is used in lower-speed main memory
SRAM is used in high performance applications DRAM is used in general purpose applications

Conclusion

From the above discussion we can conclude that SRAM and DRAM are two different types of RAMs. SRAM is static RAM that is faster, expensive and is used to implement cache. DRAM is dynamic RAM that is slower, less costly and is used to implement main memory. The major difference between SRAM and DRAM is that in SRAM bits are stored in the form of voltage whereas in DRAM bits are stored in the form of electric charges.

Difference Between SRAM and DRAM – FAQs

What is Full Form of SRAM?

The full form of SRAM is Static Random Access Memory.

Where is DRAM Used?

DRAM is used as main memory and where we require more memory with less cost.

What is SRAM Used for?

SRAM is used as the cache memory.



Similar Reads

Difference between RAM and SRAM
RAM is the temporary memory used in computers to store data and run programs. There are two main types of RAM - SRAM and DRAM. SRAM and DRAM are designed and work differently, which makes them better suited for different uses. SRAM is faster and uses less power, so it's often used in processors as cache memory. DRAM is slower but can store more dat
6 min read
SRAM Full Form
Static Random Access Memory kind of volatile semiconductor memory, or simply SRAM, as it is called wide applications in computing and electronic devices. Its characteristics, advantages, disadvantages, and applications will be discussed. In this article, the history of SRAM, its working architecture, and comparisons with other types of memory are e
6 min read
Difference between Difference Engine and Analytical Engine
Introduction: The development of computing technology has a rich history, with many inventions and innovations leading to the creation of the modern computer. Two such machines, the Difference Engine and Analytical Engine, were created by the English mathematician and inventor Charles Babbage in the 19th century. While these machines share some sim
7 min read
Difference between Voltage Drop and Potential Difference
Voltage Drop is defined as the decrease in the electric potential along the path of current that is flowing in an electric circuit. Voltage drop can be assigned at each point in the electric circuit that is proportional to the electrical elevation. The amount of energy delivered per second to any component in the circuit is equal to the voltage dro
4 min read
Difference Between Electric Potential and Potential Difference
The flow of electric charges is known as electricity, and it is responsible for producing electric current. An important word associated with electricity is electric potential. A potential difference is required to create the flow of electrons and hence, produce electricity. Before understanding the difference between electric potential and potenti
7 min read
Difference and Similarities between PHP and C
PHP is a server-side scripting language designed specifically for web development. It can be easily embedded in HTML files and HTML codes can also be written in a PHP file. The thing that differentiates PHP from a client-side language like HTML is, PHP codes are executed on the server whereas HTML codes are directly rendered on the browser. C is a
3 min read
Similarities and Difference between Java and C++
Nowadays Java and C++ programming languages are vastly used in competitive coding. Due to some awesome features, these two programming languages are widely used in industries as well as comepetitive programming . C++ is a widely popular language among coders for its efficiency, high speed, and dynamic memory utilization. Java is widely used in the
6 min read
Difference between Time Tracking and Time and Attendance Software
Time tracking and time and attendance software are tools that help businesses track the time that employees spend on tasks and their attendance records. These tools can help businesses automate their time tracking processes, reduce errors and inaccuracies, and ensure that employees are paid accurately for the time they work. Time tracking software
4 min read
Difference Between Single and Double Quotes in Shell Script and Linux
Single quotes and double quotes are both functional in Linux while working with shell scripts or executing commands directly in the terminal but there is a difference between the way the bash shell interprets them. Single quotes: Enclosing characters in single quotation marks (') holds onto the literal value of each character within the quotes. In
3 min read
Difference Between Monophyletic and vs Paraphyletic and vs Polyphyletic
In phylogeny, a taxon is a collection of organisms. Defining taxa makes it simpler to classify and identify creatures while also helping us to understand how they relate to one another. Based on these traits, taxa are developed. While some taxa are made up of unrelated creatures, others contain related species. Taxa classify descendants and ancesto
7 min read
Difference Between Grin And Smile And Smirk
Difference Between Grin And Smile And Smirk: Emotions are expressed by facial expressions. Facial expressions are considered an as important aspect of non-verbal communication. Facial expressions consist of various different body moments such as moving lips upward or downward, movement of raising the eyebrows, and giving the wide smile while descri
6 min read
Difference Between AND Gate and OR Gate
AND gate and OR gate are basic logic gates. AND gate outputs 1 when all inputs are 1 else output 0. OR gate outputs 1 when at least one input is 1 else output 0. The main difference between AND gate and OR gate is that AND gate represents logical conjunction whereas OR gate represents logical disjunction. In this article we will explore difference
4 min read
Difference Between Store‑and‑Forward Switching and Cut‑Through Switching
Switching is a technique to transmit data between networks using switches that connect multiple LANs. Switches forward data packets based on MAC addresses, efficiently using bandwidth and reducing collisions. The three main types are: Circuit Switching: Dedicated path for the entire connection, used in traditional telephony.Message Switching: Entir
5 min read
Difference between Stop and Wait protocol and Sliding Window protocol
Both the Stop and Wait protocol and the Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between the Stop-and-wait protocol and the Sliding window protocol is that in the Stop-and-Wait Protocol, the sender sends one frame and waits for acknowledgment from the receiver whereas in the sliding wi
5 min read
Difference between Black Box and White and Grey Box Testing
1. Black Box Testing : Black box testing is a type of software testing in which the functionality of the software is not known. The testing is done without the internal knowledge of the products. It is also called Functional testing. Black-box testing focuses on software’s external attributes and behavior. This type of testing looks at an applicati
4 min read
Difference between ++*p, *p++ and *++p
Predict the output of following C programs. C/C++ Code // PROGRAM 1 #include <stdio.h> int main(void) { int arr[] = {10, 20}; int *p = arr; ++*p; printf("arr[0] = %d, arr[1] = %d, *p = %d", arr[0], arr[1], *p); return 0; } C/C++ Code // PROGRAM 2 #include <stdio.h> int main(void) { int arr[] = {10, 20}; int *p = arr; *p++; pri
2 min read
Difference between sh and bash
bash and sh are two different shells of the Unix operating system. bash is sh, but with more features and better syntax. Bash is “Bourne Again SHell”, and is an improvement of the sh (original Bourne shell). Shell scripting is scripting in any shell, whereas Bash scripting is scripting specifically for Bash. sh is a shell command-line interpreter o
4 min read
Difference Between DOS and Windows
DOS: DOS stands for Disk Operating System, which is an operating system that was popular till 1995 in the IBM PCs. It is a single-tasking OS i.e., it can perform one task at a time. It is based on a command-line interface where we have to provide instruction to the computer in commands form. It runs from hard disks,floppy disk or any other storage
4 min read
What's difference between MMU and MPU?
Literally speaking, MMU is 'Memory Management Unit' while MPU is 'Memory Protection Unit'. Both of these are specialized hardware that is used by CPU for memory handling. MMU is used for many functions primarily Virtual Memory (i.e. translation of virtual address to physical address) and memory protection. But MPU is used for memory protection only
2 min read
What’s difference between “array” and “&array” for “int array[5]” ?
If someone has defined an array such as “int array[5]”, what’s the meaning of “array” or “&array”? Are they both same or are they different? You might be tempted to think that they both would point to the very first element of the array i.e. they both will have same address. Let us find out! To check this, the very first thing that comes to min
4 min read
Difference between Ping and Traceroute
In computer networks, data is sent in small blocks known as packets. Each packet is transmitted individually and may also follow a different route to reach the destination. Once all these packets of the original message reach the destination, they are re-assembled to form the original message. But, sometimes, it may happen that the webserver is dow
4 min read
Difference between strlen() and sizeof() for string in C
sizeof() Sizeof operator is a compile time unary operator which can be used to compute the size of its operand. The result of sizeof is of unsigned integral type which is usually denoted by size_t.sizeof can be applied to any data-type, including primitive types such as integer and floating-point types, pointer types, or compound datatypes such as
2 min read
Difference Between Apache Kafka and Apache Flume
Apache Kafka: It is an open-source stream-processing software platform written in Java and Scala. It is made by LinkedIn which is given to the Apache Software Foundation. Apache Kafka aims to provide a high throughput, unified, low-latency platform for handling the real-time data feeds. Kafka generally used TCP based protocol which optimized for ef
2 min read
Difference Between Constants and Variables in C
The constants and variables in C are both used to store data. So it is essential to know the difference between the variables and constants in C so that we can decide which one to use based on the situation. In this article, we will discuss the basic difference between a constant and a variable in C language. Variables in C A variable in simple ter
3 min read
Difference Between Length and Capacity in Java
Length and capacity are two different things in Java. Length basically increases when characters are appended to the string whereas the capacity increases when the current capacity is exceeded by a new length. length () method is a part of the Java String class. It is used to find the length of the string. It basically counts the number of characte
3 min read
Difference between CloudMe and Wuala
1. CloudMe : CloudMe is a file storage service which is provided by CloudMe AB. It provides file synchronization, cloud storage and client software. It was founded by Daniel Arthursson in 2011. Initially it was named iCloud but later Apple acquired that name. It offers 3 GB free storage space. It provides limited storage space for premium accounts.
2 min read
Difference between Agile and Kanban
1. Agile : Agile software development is a newer approach of software development. It is based on continuous iterative development approach throughout SDLC (Software Development Life Cycle) so that continuous changes are made according to immediate feedback/requirements and at last it results a good and effective software product which gives more s
3 min read
Difference between grep and fgrep command
The grep filter searches a file for a particular pattern of characters and displays all lines that contain that pattern. The fgrep filter searches for fixed-character strings in a file or files. Syntax of grep command: grep [options] pattern [files] Syntax of fgrep command: fgrep [options] pattern [files] The main difference between both commands i
2 min read
Difference between End-to-end Testing and Unit Testing
1. End-to-end Testing: End-to-end testing is the type of software testing used to test entire software from starting to the end along with its integration with the external interfaces. The main purpose of end-to-end testing is to identify the system dependencies and to make sure that the data integrity and communication with other systems, interfac
5 min read
Difference between Virtuoso and VoltDB
1. VoltDB : VoltDB is distributed In-Memory NewSQL RDBMS and an ACID-compliant RDBMS that uses a shared nothing architecture. This database designed by Michael Stonebraker, Sam Madden, and Daniel Abadi. Initially VoltDB database includes graphs for cluster throughput and latency as well as CPU and memory usage. VoltDB is based on H-Store and scales
2 min read