RAM vs ROM
What is RAM?
Random Access Memory (RAM) is a type of computer memory that can be accessed randomly i.e. any byte of memory can be accessed without touching the previous bytes. RAM is can be found in computers and printers.
RAM is volatile memory, which means that the stored information is lost when there is no power. So RAM is used by the central processing unit (CPU) when a computer is running to store information that needs to be used immediately, however, doesn’t store any information permanently.
What is ROM?
Read-only memory (ROM) is a type of storage that permanently stores data on personal computers (PCs) and other devices.
It contains the programming needed to start a PC or laptop, which is required for boot-up. ROM performs input/output tasks and holds programs and software instructions.
ROM is used to store the start-up instructions for a computer, also known as the firmware. Most modern computers use flash-based ROM.
It is part of the BIOS chip, which is located on the motherboard.
RAM vs ROM –
|VOLATILITY||RAM is volatile in nature as it automatically erased when computer shutdowns.||ROM is non-volatile since it is never erased when there is any shutdown or restart of computer.
|ACCESSIBILITY||RAM can be directly accessed by the processor.||ROM can’t be directly accessed by the processor since it is transferred into RAM where it is executed by the processor.
|STORAGE||RAM is used to store the temporary information for limited time.||ROM is used to store permanent information which can’t be deleted.
|HARDWARE STRUCTURE||RAM is in form of chip .||ROM is generally optical drivers made of magnetic tapes.
|COST||Costlier than ROM.||Cheaper than RAM.
|SIZE||Chip size is larger than ROM.||Chip size is smaller than RAM.
|WRITING SPEED||Writing data to a RAM chip is a faster process.||Writing data to a ROM chip is a slow process.
|STORAGE LIMIT||A RAM chip can store multiple gigabytes(GB) of data, up to 16GB or more per chip.||A ROM chip typically stores only several megabytes(MB) of data, up to 4 MB or more per chip.
|EXAMPLES||Static and Dynamic RAM.||PROM, EPROM and EEPROM are types of ROM.
Download the difference table here.
Hope you would have got the difference between RAM and ROM from above RAM vs ROM comparison table.
For more information watch this Video –