Skip to content

Tag Archives: Java-AtomicInteger

Lock-Free Algorithms is one of the mechanisms in which thread-safe access to shared data is possible without the use of Synchronization primitives like mutexes. Multi-threaded… Read More
The Java.AtomicInteger.accumulateAndGet() method is an inbuilt method, which updates the current value of the object by applying the specified operation on the current value and… Read More
The Java.AtomicInteger.updateAndGet() method is an inbuilt method, which updates the current value of the object by applying the specified operation on the current value. It… Read More
The Java.AtomicInteger.getAndAccumulate() method is an inbuilt method, which updates the current value of the object by applying the specified operation on the current value and… Read More
The java.util.concurrent.atomic.AtomicInteger.addandget() is an inbuilt method in java which adds the value which is passed in the parameter of the function to the previous value… Read More
The java.util.concurrent.atomic.AtomicInteger.floatValue() is an inbuilt method in java which returns the current value of the AtomicInteger as a Float data-type after performing primitive conversion. Syntax:… Read More
The java.util.concurrent.atomic.AtomicInteger.get() is an inbuilt method in java which returns the current value which is of date-type int. Syntax: public final int get() Parameters: The… Read More
The java.util.concurrent.atomic.AtomicInteger.doubleValue() is an inbuilt method in java which returns the current value of the AtomicInteger as a Double data-type after performing primitive conversion. Syntax:… Read More
The java.util.concurrent.atomic.AtomicInteger.decrementAndGet() is an inbuilt method in java that decreases the previous value by one and returns the value after updation which is of data-type… Read More
The java.util.concurrent.atomic.AtomicInteger.compareAndSet() is an inbuilt method in java that sets the value to the passed value in the parameter if the current value is equal… Read More
The java.util.concurrent.atomic.AtomicInteger.getAndIncrement() is an inbuilt method in java that increases the given value by one and returns the value before updation which is of data-type… Read More
The java.util.concurrent.atomic.AtomicInteger.intValue() is an inbuilt method in java that returns the value which is currently stored in the object which is of data-type int. Syntax:… Read More
The java.util.concurrent.atomic.AtomicInteger.getAndAdd() is an inbuilt method in java that adds the given value to the current value and returns the value before updation which is… Read More
The java.util.concurrent.atomic.AtomicInteger.longValue() is an inbuilt method in java that returns the value which is currently stored in the object by converting it into a long… Read More
The java.util.concurrent.atomic.AtomicInteger.weakCompareAndSet() is an inbuilt method in java that sets the value to the passed value in the parameter if the current value is equal… Read More