4 ms·
Cache coherency isn't something that average app developers have had to worry about since forever - the only place I can think of most developers might encounte
by brigade 12y ago
Cache coherency isn't something that average app developers have had to worry about since forever - the only place I can think of most developers might encounter issues is with GPU programming, but graphics APIs tend to deal with coherency issues pretty well.
- colanderman 12y agoJacques said "consistency", not "coherency"… those are different things. Yes, most processors provide a coherent cache – individual writes are guaranteed to be eventually seen by all cores. However, most modern processors do not provide a consistent cache (for performance's sake): the order that unrelated writes become visible is not guaranteed. Memory fences (which are not flushes or invalidates; neither implies the other!) instruct the CPU to provide such ordering.