Difference between RAM and ROM

Computer EngineeringComputer NetworkMCA

RAM and ROM are both types of computer memory. RAM is used to store computer programs and data that CPU needs in real time. RAM data is volatile and is erased once computer is switched off. ROM have prerecorded data and it is used to boot computer. RAM data is static and remains in the computer even if computer is switched off.

Following are the important differences between RAM and ROM.

1DefinitionRAM stands for Random Access Memory.ROM stands for Read Only Memory.
2Data RetentionRAM data is volatile. Data is present till power supply is present.ROM data is permanent. Data remains even after power supply is not present.
3Data AccessRAM data can be read, erased or modified.ROM data is readonly.
4UsageRAM is used to store data that CPU needs for current instruction processing.ROM is used to store data that in needed to bootstrap the computer.
5SpeedRAM speed is quite high.ROM speed is slower than RAM.
6CPU AccessCPU can access data stored on RAM.Data to be copied from ROM to RAM so that CPU can access its data.
7CapacityRAM memory is large and high capacity.ROM is generally small and of low capacity.
8UsageRAM is used as CPU Cache, Primary Memory.ROM is used as firmware by microcontrollers.
9CostRAM is costly.ROM is cheap.
Published on 26-Nov-2019 16:40:59