Skip to content
Related Articles
Open in App
Not now

Related Articles

Difference between Primary and Secondary Memory

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 04 Jul, 2022
Improve Article
Save Article

Computer Memories store data and instruction. Memory system can be divided into 4 categories:

  • CPU register
  • Cache memory
  • Primary / Main memory
  • Secondary Memory / Mass Storage

They can be represented in an hierarchical form as:  

Computer Memory

 1. Primary / Main memory: Primary memory is the computer memory that is directly accessible by CPU. It is comprised of DRAM and provides the actual working space to the processor. It holds the data and instructions that the processor is currently working on. 2. Secondary Memory / Mass Storage: The contents of the secondary memory first get transferred to the primary memory and then are accessed by the processor, this is because the processor does not directly interact with the secondary memory. Now, Let’s see the difference between Primary memory and Secondary memory:

Primary memorySecondary memory
Primary memory is temporary.Secondary memory is permanent.
Primary memory is directly accessible by Processor/CPU.Secondary memory is not directly accessible by the CPU.
Nature of Parts of Primary memory varies, RAM- volatile in nature. ROM- Non-volatile.It’s always Non-volatile in nature.
Primary memory devices are more expensive than secondary storage devices.Secondary memory devices are less expensive when compared to primary memory devices.
The memory devices used for primary memory are semiconductor memories.The secondary memory devices are magnetic and optical memories.
Primary memory is also known as Main memory or Internal memory.Secondary memory is also known as External memory or Auxiliary memory.
Examples: RAM, ROM, Cache memory, PROM, EPROM, Registers, etc.Examples: Hard Disk, Floppy Disk, Magnetic Tapes, etc.
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!