IT lexicon › Programming › Snoop coherence

Snoop coherence

Programming På svenska → Updated: 2026-11-16

A cache coherence mechanism where each CPU listens on a shared bus (snoops) and updates its cache when another CPU writes to memory.

In a multi-core processor with separate caches, reads from different cores must see the same value. Snoop coherence solves this by letting all cores monitor bus traffic. When core A writes a value, core B's cache line for that address becomes invalid (invalidate protocol) or updated (update protocol). Snooping is simple to implement for small core counts (2–8), but bus contention becomes a bottleneck as cores multiply.

Larger systems (16+ cores) use directory-based coherence instead, where a central directory tracks which core owns each cache line. Snoop requires broadcast capability on the bus; directory only needs point-to-point routing.

← Back to the lexicon