Why are SRAM and DRAM used?
SRAM is frequently used for cache memory in computers, such as the L2 or L3 cache of a CPU. Due to its expense and size, it is not utilised as the primary memory of computers. Instead, most computers utilise DRAM since it offers higher densities and is less expensive per megabyte (MB).