There are two types of memory in a desktop computer; Permanent and Temporary. Both play important roles in your computer in keeping it running quickly and efficiently.
Permanent (Secondary) Memory
Click for Larger Image
When data and instructions are not being used they are be kept in permanent storage such as a hard drive, flash drive, or CD-Rom. Permanent storage or memory is just that, permanent. It is where all your files and data are saved. When your computer is turned off your data is safely saved ready to be used again when the computer is powered up.
Temporary (Primary) Memory
Click for Larger Image
The CPU uses temporary storage to temporarily hold both data and instructions while processing them. It holds the data and instructions in RAM (Random Access Memory). This is why RAM is usually located next to the CPU on the motherboard. It can quickly access and process the data that is located in the RAM. One important note however it that, when the computer is turned off, all data that is saved in the RAM is lost. This is why it is called temporary. One final note, Primary Storage is Faster than Secondary Storage.