In multithreading, the shared entity mostly leads to a problem when concurrency is incorporated. A shared entity such as, mutable object or variable, might be… Read More
Tag Archives: Java-util-concurrent-atomic package
The accumulateAndGet() method of a AtomicReferenceArray class is used to atomically updates the element at index i of AtomicReferenceArray with the results of applying the… Read More
The getAndAccumulate() method of a AtomicReferenceArray class is used to atomically updates the element at index i of AtomicReferenceArray with the results of applying the… Read More
The updateAndGet() method of a AtomicReferenceArray class is used to atomically updates which updates the current value of the AtomicReferenceArray by applying the specified updateFunction… Read More
The getAndUpdate() method of a AtomicReferenceArray class is used to atomically updates which updates the current value of the AtomicReferenceArray by applying the specified updateFunction… Read More
The setRelease() method of a AtomicReference class is used to set the value of this AtomicReference object with memory effects as specified by VarHandle.setRelease(java.lang.Object…). This… Read More
The weakCompareAndSetRelease() method of a AtomicReference class is used to atomically sets the value to newValue for AtomicReference if the current value is equal to… Read More
The weakCompareAndSetPlain() method of a AtomicReferenceArray class is used to atomically sets the value of the element at index i to newValue to newValue for… Read More
The getPlain() method of a AtomicReference class is used to return the current value of AtomicReference object, with memory semantics of reading as if the… Read More
The weakCompareAndSetRelease() method of a AtomicReferenceArray class is used to atomically sets the value of the element at index i to newValue to newValue for… Read More
The setPlain() method of a AtomicReferenceArray class is used to set the value of the element at index i to newValue. Both index i and… Read More
The get() method of a AtomicReference class is used to return the value of this AtomicReference object with memory semantics of reading as if the… Read More
The getAcquire() method of a AtomicReference class is used to return the value of this AtomicReference object with memory ordering effects on getting variable is… Read More
The weakCompareAndSetPlain() method of a AtomicReference class is used to atomically sets the value to newValue for AtomicReference if the current value is equal to… Read More
The weakCompareAndSet() method of a AtomicReferenceArray class is used to atomically sets the value of the element at index i to newValue to newValue for… Read More