Difference Between Volatile and Nonvolatile Memory

The main difference between volatile and nonvolatile memory is that the volatile memory requires a continuous power supply to retain data while nonvolatile memory does not require a continuous power supply to retain data.

Memory is an important component in a computer. There are two types of memory called volatile and nonvolatile memory. Volatile memory requires a consistent power flow to hold data. Thus, the content is deleted when the power is interrupted. Therefore, volatile memory stores data temporarily. Moreover, it refers to primary storage such as RAM. On the other hand, nonvolatile memory refers to secondary storage devices. This type of memory does not require a consistent flow of power to hold data. In other words, interruption in power will not delete the content in nonvolatile memory.

Key Areas Covered

1. What is Volatile Memory
     – Definition, Functionality
2. What is Nonvolatile Memory
     – Definition, Functionality
3. What is the Difference Between Volatile and Nonvolatile Memory
     – Comparison of Key Differences

Key Terms

Volatile, Nonvolatile Memory, Operating System, ROM, RAM

Difference Between Volatile Memory and Nonvolatile Memory - Comparison Summary

What is Volatile Memory

Volatile memory requires a continuous flow of power to hold data. Therefore, it will retain data as long as there is power. If there is a power failure, the stored data in the volatile memory is erased. Main memory or RAM uses volatile memory. There are two types of RAM called Static RAM (SRAM) and Dynamic RAM (DRAM). SRAM is a semiconductor memory. It uses flip flops to store data. It is a fast memory. SRAM is frequently used for the cache to access data within a minimum amount of time. It is also used for routers, peripheral devices, and register files.

Main Difference - Volatile Memory vs Nonvolatile Memory

Figure 1: RAM

DRAM is a semiconductor memory. It stores data in a separate capacitor with an integrated circuit. The charging and discharging of the capacitor represents the logical one or logical zero. There is a leakage in current because of the capacitor. It can result in data loss. Therefore, DRAM requires continuous refresh cycles to hold data. DRAM is not faster than DRAM, but it is faster than the secondary storage devices.

What is Nonvolatile Memory

The nonvolatile memory stores data even there is no continuous power flow. It will retain data even there is a power failure. In other words, the data in nonvolatile memory is permanent. ROM, hard disk drives are some examples for nonvolatile memory.

Difference Between Volatile Memory and Nonvolatile Memory

Figure 2: Hard Disk

ROM stands for Read Only Memory. It contains the instructions necessary to start the computer. It is only possible to read from ROM, and it is not possible to do write operations to the ROM. The hard drive is another component that has nonvolatile memory.  It consists of one or more rigid rotating devices called platters coated with magnetic material. These platters are arranged on a moving actuator arm. The arm reads and writes data to the platter surfaces. It is possible to read and write sequentially as well as in a non-contiguous manner.

Difference Between Volatile Memory and Nonvolatile Memory

Definition

Volatile memory is computer memory that requires constant power to maintain the stored information. Nonvolatile memory is a type of computer memory that can store information even there is no constant power.

Basis

The volatile memory requires a consistent flow of power to retain data while the nonvolatile memory does not require a consistent flow of power to retain data.

Impact

Volatile memory affects the system performance. Nonvolatile memory affects the system storage.

Data

The volatile memory holds data temporary while nonvolatile memory holds data permanently.

Speed

The volatile memory is faster than nonvolatile memory.

Storage Type

Volatile memory refers to primary storage type while nonvolatile memory refers to secondary storage type.

Examples

RAM is an example of volatile memory. ROM, hard disk, floppy memory, Solid State Drive are some examples for nonvolatile memory.

Conclusion

The difference between volatile and nonvolatile memory is that the volatile memory requires a continuous power supply to retain data while the nonvolatile memory does not require a continuous power supply to retain data. Usually, the volatile memory is faster than nonvolatile memory.

Reference:

1. “Volatile Memory.” Wikipedia, Wikimedia Foundation, 26 July 2018, Available here.
2. “Non-Volatile Memory.” Wikipedia, Wikimedia Foundation, 27 July 2018, Available here.
3. “What Is a Hard Drive?” Computer Hope, 1 Apr. 2018, Available here.

Image Courtesy:

1. “Ram chip” By Laserlicht – Own work (CC BY-SA 3.0) via Commons Wikimedia
2. “IBM DJNA-351520 Hard Disk B” By Christian Jansky – Own work (CC BY-SA 3.0) via Commons Wikimedia

About the Author: Lithmee

Lithmee holds a Bachelor of Science degree in Computer Systems Engineering and is reading for her Master’s degree in Computer Science. She is passionate about sharing her knowldge in the areas of programming, data science, and computer systems.

Leave a Reply