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. CAM, Content Addressable Memory or Associative memory is used to store data words and CAM searches its memory for a provided word and returns the list of addresses where data word is found.
Following are the important differences between RAM and CAM.
|1||Definition||RAM stands for Random Access Memory.||CAM stands for Content Addressable Memory.|
|2||Operation||User supplies an address and RAM returns the word present at that location.||User supplies a word and CAM returns the links where word is present.|
|3||Cost||RAM is cheaper than associative memory.||CAM is costlier.|
|4||Application||RAM is used to run programs and to store their data during execution.||CAM is primary used in database management systems.|
|5||Suitability||RAM is suitable for PRAM (Paraller RAM) algorithm.||CAM is suitable for parallel access.|