RAM is the main memory of the computer. It holds the data unit the system is turned off. Once the system is switched off, the data is lost.As a result, it is known as the temporary data storage area. There are two types of RAM, Static RAM and Dynamic RAM.
Static Random Access Memory(SRAM)
SRAM is the type of semiconductor memory. It stores the data as long as the power is supplied to the system . Once the power is turned off or is lost temporarily,data stored in SRAM is lost. SRAM uses six transistors for each memory cell. Due to more number of transistors present in the cell, the cell do not refresh frequently.Hence,the data is stored for longer period. Refreshing a cell means re-writing data in a cell.
SRAM is faster in accessing data. The data accessing speed of SRAM makes it behave like a cache memory .SRAM is expensive as compared to DRAM . Example of SRAM is all types of Cache Memory.
Dynamic Random Access Memory(DRAM)
The lifetime of data in RAM is very short.It is approximately for four milliseconds.The data in DRAM are stored in memory cells. Each memory cell contains a pair of a transistor and a capacitor.Each memory cell contains a pair of a transistor and a capacitor.Each memory cell is referred as a bit of data, the smallest amount of information that the system can work with. The memory cells of DRAM are refreshed by DRAM controller after every few milliseconds to retain the data in the memory.
The cells in DRAM are arranged in rows and columns .Each cell has a row and a column reference number. DRAM accesses the data using the cell reference number. DRAM is less expensive than SRAM
The cells in DRAM are arranged in rows and columns .Each cell has a row and a column reference number. DRAM accesses the data using the cell reference number. DRAM is less expensive than SRAM