Difference between Primary and Secondary memory
Memory is the storage space utilised by the computer for storing data and instructions, required for processing of the information.
Memory is of two types:
1) Primary (or) Main memory
2) Secondary (or) Auxiliary Memory
Now let’s look in brief at both types and their characteristics.
- It is the Main Memory of the computer where the currently processing data or information resides for faster access.
- It is volatile by its nature, which means data in this memory is stored temporarily, and it does not retain data during a power outage.
- It uses semiconductor chip technology, which has a minimum capacity of storage but fastly accesses the Memory by utilising the CPU. It is also expensive.
Types of Primary Memory:
- RAM (RANDOM ACCESS MEMORY)
- ROM (READ ONLY MEMORY)
RAM (RANDOM ACCESS MEMORY): RAM is most commonly known as Main Memory. It is known as cache memory as the information stored in this type of memory is lost when there is no power supply. Every operation on the computer first loads into the random access memory (RAM), which makes it faster to access. RAM is both read and write Memory. RAM can be static or dynamic.
ROM (READ ONLY MEMORY): ROM is a read-only memory. It is a permanent type of Memory, which stores the instructions that are essential to boot up the system. The user can not overwrite ROM as the information of ROM is permanently stored at the time of manufacturing by the computer manufacturer. It is a non-volatile memory as it retains the data even during power loss. The types of ROM are PROM, EPROM, and EEPROM.
- Secondary Memory is an auxiliary or external memory of the computer. All storage devices such as hard disk, optical disk, compact disk, flash drives, magnetic tapes, etc. which have high-storage capacities are known as Secondary memory.
- The Central Processing Unit cannot directly access the data in secondary memory. As it requires the data to be initially copied to primary memory to be processed by CPU, this makes accessing data from secondary memory to become slower.
- The secondary memory uses the input-output channels to access the data, making it non-volatile, i.e. the content of the secondary memory exists even in the absence of power.
- As the computer can even work without secondary memory as it an external memory, these storage devices are available at cheaper rates.
Differences between Primary and Secondary memory:
|Primary Memory||Secondary Memory|
|It is the main or internal memory of the computer where data is stored temporarily.||It is the auxiliary or external memory of the computer where data is stored permanently.|
|It is a volatile memory, i.e. it retains data during power loss.||It is a non–volatile memory, i.e. it cannot retain the data during power loss.|
|Data accessing speed is fast, as||Data accessing speed is slow|
|It is accessed by the data bus or CPU||It is accessed by the Input/output channels|
|It is costly||It is cheap|
|Examples are Ram, ROM, Cache memory, PROM, EPROM, Registers, etc.||Examples are 1) Hard Drive, 2) SSD, 3) Flash, 4)Optical Drive, 5) USD Drive, 3) Magnetic Tapes|
We’ve created this content for informational purposes only, and it reflects the views of its respective authors/entities (freelancers/interns) and not those of Winspire Magazine. Winspire Magazine does not endorse or vouch for the accuracy of the information provided in this content. It is the reader’s responsibility to verify and ensure the information is correct and up-to-date. Winspire Magazine disclaims any liability or responsibility for any damages or losses from using this content. Therefore, readers should take all necessary steps to verify the accuracy and reliability of any information presented in this content.