Caching coherence protocols are generally implemented in hardware (inside the central processor or related chipsets). The operating system usually only sets the cache area of โโthe system memory and has some control over the state of the cache, but the actual protocol is specific to specific equipment.
For help on how to control caching data on Intels processors, you can read the Intelยฎ 64 and IA-32 Software Developer's Guide Volume 3A: System Programming Guide (Chapter 11). But this only applies to parts that are under the control of software or the operating system.
source share