27 Java - Multithreading 4 (Atomic Variables)
Concurrency Types
Concurrency can be achieved using 2 ways
Lock based Mechanism
Synchronized
Reentrant
Stamped
ReadWrite
Semaphores
Lock Free Mechanism
CAS Operation (Compare-and Swap)
AtomicInteger
AtomicBoolean
AtomicLong
AtomicReference...
chetan77.hashnode.dev6 min read