cache conflict


cache conflict

(storage)A sequence of accesses to memory repeatedlyoverwriting the same cache entry. This can happen if twoblocks of data, which are mapped to the same set of cachelocations, are needed simultaneously.

For example, in the case of a direct mapped cache, ifarrays A, B, and C map to the same range of cache locations,thrashing will occur when the following loop is executed:

for (i=1; i
Cache conflict can also occur between a program loop and thedata it is accessing.

See also ping-pong.