Volatile ensures that changes to a variable are visible to all threads immediately.
← Core Java theorytheory 0/50 · 0%
Concurrency · hard
40. Volatile Keyword
Memory visibility.
Check your understanding
1. Does volatile provide atomicity?
2. Where is volatile stored?