Core Java theorytheory 0/50 · 0%
Concurrency · hard

40. Volatile Keyword

Memory visibility.

Volatile ensures that changes to a variable are visible to all threads immediately.

Check your understanding

  1. 1. Does volatile provide atomicity?

  2. 2. Where is volatile stored?