Java Concurrency - Atomic variable access

> Procedural Languages > Java > Java - Concurrency (Parallel Work)

1 - About

Using simple atomic variable access is more efficient than accessing these variables through synchronized code, but requires more care by the programmer to avoid memory consistency errors. Whether the extra effort is worthwhile depends on the size and complexity of the application.


3 - Operations

Atomic Variable Operations: Reads and writes are atomic for

Some of the classes in the java.util.concurrent package provide atomic methods that do not rely on synchronization.

4 - Documentation / Reference