Compare the Difference Between Similar Terms

Difference Between

Home / Technology / IT / Systems /Difference Between Primary and Secondary Memory

Difference Between Primary and Secondary Memory

June 21, 2011Posted byIndika

Primary vs Secondary Memory | Auxiliary Storage Devices

A computer contains a hierarchy of memory devices for storing data. They vary in their capacity, speed and cost. Primary memory (also referred to as the main memory) is the memory that is directly accessed by the CPU to store and retrieve information. Secondary memory (also referred to as the external or auxiliary memory) is a storage device that is not accessible directly by the CPU and used as a permanent storage device that retains data even after the power is turned off.

What is Primary Memory?

Primary memory is the memory that is directly accessed by the CPU to store and retrieve information. Most of the time, primary memory is also referred to as the RAM (Random Access Memory). It is a volatile memory, which loses its data when the power is turned off. Primary memory is directly accessible by the CPU through the address and memory bus and it is constantly accessed by the CPU to get data and instructions. Furthermore, computers contain a ROM (Read Only Memory), which holds instructions that are executed often such as the startup program (BIOS). This is a non volatile memory that retains its data when the power is turned off. Since the main memory is accessed often, it needs to be faster. But they are smaller in size and also costly.

What is Secondary Memory?

辅助存储器存储设备that is not accessible directly by the CPU and used as a permanent storage device that retains data even after power is turned off. CPU accesses these devices through an input/ output channel and data is first transferred in to the primary memory from the secondary memory before accessing. Usually, hard disk drives and optical storage devices (CDs, DVDs) are used as secondary storage devices in modern computers. In a secondary storage device, data are organized in to files and directories according to a file system. This also allows to associate additional information with data such as the access permissions, owner, last access time, etc. Furthermore, when the primary memory is filled up, secondary memory is used as a temporary storage for keeping least used data in the primary memory. Secondary memory devices are less costly and larger in size. But they have a large access time.

Difference between Primary and Secondary Memory

Primary memory is the memory that is directly accessed by the CPU to store and retrieve information, whereas the secondary memory is not accessible directly by the CPU. Primary memory is accessed using address and data buses by the CPU, while secondary memory is accessed using input/ output channels. Primary memory does not retain data when the power is turned off (volatile) while secondary memory retains data when the power is turned off (non-volatile). Furthermore, primary memory is very fast compared to the secondary memory and has a lower access time. But, primary memory devices are more costly compared to secondary memory devices. Due to this reason, usually a computer comprises of a smaller primary memory and a much larger secondary memory.

Related posts:

Difference Between RAM and ROMDifference Between RAM and ROM Difference Between Static RAM and Dynamic RAM Difference Between Physical and Virtual Memory Difference Between Microprocessor and Microcontroller Difference Between Embedded and External Memory Devices

Filed Under:SystemsTagged With:Auxiliary memory,external memory,hierarchy of memory devices,main memory,permanent storage device,primary memory,Primary vs Auxiliary Storage Devices,RAM,Random Access Memory,Read Only Memory,ROM,Secondary memory,secondary storage devices

About the Author:Indika

Indika, BSc.Eng, MSECE Computer Engineering, PhD. Computer Science, is an Assistant Professor and has research interests in the areas of Bioinformatics, Computational Biology, and Biomedical Natural Language Processing.

Comments

  1. arsala mehr alisays

    January 7, 2012 at 12:48 pm

    is primary or volatile is same?

    Reply
    • smart girlsays

      May 4, 2015 at 8:35 am

      Yes its the same

      Reply
  2. arsala mehr alisays

    January 7, 2012 at 12:48 pm

    厚度快速guyz

    Reply
  3. arsala mehr alisays

    January 7, 2012 at 1:37 pm

    is storage or memory is same?

    Reply
    • smart girlsays

      May 4, 2015 at 8:34 am

      Yes

      Reply
  4. p.gnanikasays

    December 19, 2017 at 6:23 pm

    is secondary memory is ROM???

    Reply
  5. shahzad ali rajasays

    January 29, 2019 at 6:09 am

    primary memory is volatile and rom is a part of primary memory(non volatile). what is difference between this

    Reply

Leave a ReplyCancel reply

Your email address will not be published.Required fields are marked*

Request Article

Featured Posts

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and SARS

Difference Between Coronavirus and SARS

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Covid 19

Difference Between Coronavirus and Covid 19

You May Like

Difference Between Courtesy and Respect

Difference Between Courtesy and Respect

Difference Between Lamellae and Lacunae

Difference Between Lamellae and Lacunae

What is the Difference Between Exotic and Endemic Species

What is the Difference Between Exotic and Endemic Species

Difference Between Graffiti and Tagging

Difference Between Graffiti and Tagging

Difference Between Open and Closed Questions

Difference Between Open and Closed Questions

Latest Posts

  • What is the Difference Between Induction Cooker and Normal Cooker
  • 白癜风和Psoria之间的区别是什么sis
  • What is the Difference Between Cancellous and Cortical Bone
  • What is the Difference Between Electric and Induction Cooktop
  • What is the Difference Between Prevention and Cure
  • What is the Difference Between DSM IV and DSM V Autism
  • Home
  • Vacancies
  • About
  • Request Article
  • Contact Us

Copyright © 2010-2018Difference Between. All rights reserved.Terms of Useand Privacy Policy:Legal.