How do CPUs recognise 'important files' to put in the cache?

miner_1130

Reputable
Sep 26, 2015
38
0
4,540
So my understanding of cache is that the CPU recognises important files to put in the cache from the SSD or HDD. How does the CPU recognise that it is an important file? Might be a complicated question, but I'm trying to figure out how a CPU works, already learnt how clock speeds work, now I think the next step is cache.
 
Solution
"A CPU cache is a cache used by the central processing unit (CPU) of a computer to reduce the average time to access data from the main memory. The cache is a smaller, faster memory which stores copies of the data from frequently used main memory locations. Most CPUs have different independent caches, including instruction and data caches, where the data cache is usually organized as a hierarchy of more cache levels (L1, L2, etc.)"

https://en.wikipedia.org/wiki/CPU_cache

miner_1130

Reputable
Sep 26, 2015
38
0
4,540

And is my understanding correct?
 

USAFRet

Titan
Moderator
"A CPU cache is a cache used by the central processing unit (CPU) of a computer to reduce the average time to access data from the main memory. The cache is a smaller, faster memory which stores copies of the data from frequently used main memory locations. Most CPUs have different independent caches, including instruction and data caches, where the data cache is usually organized as a hierarchy of more cache levels (L1, L2, etc.)"

https://en.wikipedia.org/wiki/CPU_cache
 
Solution