Why Do We Need the Volatile Keyword?
DZone
MAY 19, 2019
What fascinates me most about the volatile keyword is that it is still necessary, for me, because my software still runs on a silicon chip. Even if my application runs in the cloud on the JVM, despite all of those software layers abstracting away the underlying hardware, the volatile keyword is still needed due to the cache of the processor that my software runs on.
Let's personalize your content