title: What cache invalidation algorithms are used in actual CPU caches?
body: <p>I came to the topic caching and mapping and cache misses and how the cache blocks get replaced in what order when all blocks are already full.</p>
  
  <p>There is the least recently used algorithm or the fifo algorithm or the least frequently algorithm and random replacement, ...</p>
  
  <p>But what algorithms are used on actual cpu caches? Or can you use all and the... operating system decides what the best algorithm is?</p>
  
  <hr>
  
  <p>Edit: Even when i chose an answer, any further information is welcome ;)</p>