From Java 5 onwards Java has added multiple thread safe atomic classes in 'java.util.concurrent' package which can be categories in followings:
1. Atomic class for atomic access to primitive types
1. Atomic class for atomic access to primitive types
- AtomicBoolean
 - AtomicInteger
 - AtomicLong
 - AtomicReference
 
- AtomicIntegerArray
 - AtomicLongArray
 - AtomicReferenceArray
 
- AtomicIntegerFieldUpdater
 - AtomicLongFieldUpdater
 - AtomicReferenceFieldUpdater
 
4.  Atomically integrate a boolean or integer with a reference field:
- AtomicMarkableReference
 - AtomicStampedReference
 
No comments:
Post a Comment