Conflict miss occur in…….
Conflict miss occur in…….
- A.
K way mapping
- B.
Direct mapping
- C.
both
- D.
none of the above
Attempted by 448 students.
Show answer & explanation
Correct answer: C
Answer: Conflict misses can occur in both set-associative (k-way) and direct-mapped caches.
Why:
Direct-mapped: each memory block maps to exactly one cache line. If two blocks map to the same line they evict each other, producing conflict misses.
Set-associative (k-way): blocks map to a set of k lines. If more than k blocks map to the same set they compete for the k lines and conflict misses occur.
Fully associative: a block may be placed in any line, which eliminates conflict misses (only capacity and compulsory misses remain).
Example: If three blocks map to the same 2-way set, one block must be evicted when the third is loaded, causing a conflict miss even though other parts of the cache are free.