I am a beginner in Multi Threading and came across this concept of Volatile variable whose one of the definitions is:
It ensures that every read/write is done from/to main memory
What I want to understand is that are these variables not stored in cache at all and only in main memory or are there modifications etc are directly written to main memory and completely skip the cache?