Supposing I have an AtomicInteger called x.
Is x.get() equivalent to getAndAdd(0)?
I know getAndAdd(0) is definitely atomic, but it looks pointless at first glance.
I have the same question for set().
I am pretty sure that set is non-atomic, but I want to be sure.
What operations are atomic for AtomicIntegers and AtomicBooleans?
Post a Reply
Nothing to see here.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|