Java provides a set of useful classes in it’s java.util.concurrent.atomic package. This package contains a small toolkit of classes that support lock-free (at least whenever possible) and thread-safe programming on single variables. But how can it be lock-free (or what does that mean)? How useful they are? When to use them?

December 21, 2013 Concurrency, Java