Open In App

Primary Memory

Primary storage or memory is also known as the main memory, which is the part of the computer that stores current data, programs, and instructions. Primary storage is stored in the motherboard which results in the data from and to primary storage can be read and written at a very good pace.

What is Primary Memory

Primary memory is a segment of computer memory that can be accessed directly by the processor. In a hierarchy of memory, primary memory has access time less than secondary memory and greater than cache memory. Generally, primary memory has a storage capacity lesser than secondary memory and greater than cache memory.



Need of primary memory

In order to enhance the efficiency of the system, memory is organized in such a way that access time for the ready process is minimized. The following approach is followed to minimize access time for the ready process.

This organization of memory in a stepwise manner is known as Memory Hierarchy.



Primary Memory Example

Primary Memory examples are RAM, ROM, cache, PROM, EPROM, registers, etc.

Classification of Primary Memory

Primary memory can be broadly classified into two parts:

  1. Read-Only Memory (ROM)
  2. Random Access Memory (RAM)

Read-Only Memory

Any data which need not be altered are stored in ROM. ROM includes those programs which run on booting of the system (known as a bootstrap program that initializes OS) along with data like algorithm required by OS. Anything stored in ROM cannot be altered or changed.

Types of ROM:

ROM can be broadly classified into 4 types based on their behavior:

Random Access Memory

Any process in the system which needs to be executed is loaded in RAM which is processed by the CPU as per Instructions in the program. Like if we click on applications like Browser, firstly browser code will be loaded by the Operating system into the RAM after which the CPU will execute and open up the Browser.

Types of RAM:

RAM can be broadly classified into SRAM (Static RAM) and DRAM (Dynamic RAM) based on their behavior:

Primary Memory is volatile in nature.

Content of primary memory may or may not vanish when power is lost depending on if it is stored in RAM or ROM. 

When cache memory comes into existence?

Data in primary memory can be accessed faster than secondary memory but still, access times of primary memory are generally in a few microseconds, whereas the CPU is capable of performing operations in nanoseconds. Due to the time lag between accessing data and acting on data performance of the system decreases as the CPU is not utilized properly, it may remain idle for some time. In order to minimize this time gap new segment of memory is Introduced known as Cache Memory.

Article Tags :