Java 5 also introduced a package, java.util.concurrent.atomic, that contains
some useful classes that support lock-free thread-safe programming on single
variables.
Here
is the javadoc for this package. It lists the classes and some
documentation thereof.