What is a cache in a computer system?
A cache is a component in the memory hierarchy—typically made of static RAM (SRAM)—that is significantly faster than the main memory (DRAM) but smaller and more expensive. Its purpose is to store copies of data and instructions from frequently used main memory locations, placing them closer to the CPU for quicker access.