1.联想记忆:
如果存储的数据可以通过数据的内容供其自己使用而不是通过访问来标识,则可以大大减少查找存储在内存中的对象所需的时间。由材料访问的存储单元称为关联存储器或内容可寻址存储器(CAM)。根据数据内容而不是特定的地址或位置,可以同时并行访问这种类型的存储器。如果将单词写到关联存储器中,则不会给出地址。内存能够找到空的未使用空间来存储单词或指定单词的一部分。内存会检测到与指定内容匹配的所有单词,并标记它们以供阅读。
2.缓存:
如果程序和数据的活动部分可以保留在快速存储器中,则总执行时间将大大减少。这种内存称为高速缓存,它被插入到CPU和主内存之间。为了使这种安排有效。高速缓存需要比主内存快得多。这种方法比使用快速存储设备实现整个主存储器更经济。
关联和缓存之间的区别:
S.No. | Associative Memory | Cache Memory |
---|---|---|
1 | A memory unit access by content is called associative memory. | A fast and small memory is called cache memory. |
2 | It reduces the time required to find the item stored in memory. | It reduces the average memory access time. |
3 | Here data accessed by its content. | Here, data are accessed by its address. |
4 | It is used where search time is very short. | It is used when particular group of data is accessed repeatedly. |
5 | Its basic characteristic is its logic circuit for matching its content. | Its basic characteristic is its fast access. |