Skip to content

MediumConceptMultithreading and Concurrency

What does volatile guarantee and what does it not?

What a good answer covers

It guarantees visibility and ordering of writes to that variable across threads. It does not make compound actions such as count++ atomic.

More on Multithreading and Concurrency

Flashcards for this topic