r/AskComputerScience • • Jan 03 '25
Can you say primary memory is volatile?
I'm doing some research for assignment and I've come across this issue where websites are saying primary memory is volatile and they list ROM as primary memory. ROM is non-volatile tho. WhAt iS GoInG On?
4
Upvotes
3
u/nuclear_splines Ph.D Data Science Jan 03 '25
RAM is volatile, ROM is not, and both are forms of primary memory in that the CPU has direct access to them. When we're talking informally about "memory" we're typically referring to RAM, so some websites that aren't being careful with their vocabulary might say that "memory is volatile" without realizing that's not quite accurate.
1
u/[deleted] Jan 03 '25 edited Jan 03 '25
Volatile Memory = memory that needs a constant power source in order to maintain its contents
Primary Memory = memory that is directly addressable by the CPU via its address lines
The two are not correlated
RAM = Usually volatile. Can be used as either primary or secondary storage. Here’s an example of RAM as secondary storage. The DRAM we use today is volatile however not all RAM is. One example of non-volatile RAM is Core Memory, which was commonly used on computers before DRAM was invented.
ROM = Always non-volatile, and can also be used as either primary or secondary storage. CD-ROMs are an example of a ROM as a secondary storage device.
Furthermore, there’s an old technology called drum memory that was basically like a hard drive in a cylindrical shape. It acted as primary memory and code executed from it directly, but it was neither RAM nor ROM.