Nepedia
Back to Discover
Independent Reader
💻

Cache coherence

technology Maturity 7-9 Next article →

Computers often have many parts working at once.

Non Coherent
Non Coherent

Each part can keep its own local copy of data. This small storage is called a cache. Cache coherence is the way a system keeps all these copies the same.

If one part changes its data, the other copies must change too. This is called write propagation. This step makes sure all copies get the new info. The system must also use transaction serialization. This means all parts see changes in the same order. Without these rules, different parts might see different values. This can lead to big errors.

Non Coherent
Non Coherent

Computers use two main ways to stay coherent. One way is called snooping. In snooping, each cache watches the data lines. It listens for changes to the data it holds. This is fast but hard to do in very big systems.

The other way is directory-based. This uses a central directory to keep track of data. The directory acts like a list. It tells the system which parts have which data. This works well for very large systems with many processors.

Cache coherence
Cache coherence
179 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Cache coherence.svg
Cache coherence.svg
File:Non Coherent.gif
Non Coherent.gif
File:Coherent.gif
Coherent.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.