Atomic variables: getAndX, xAndGet and compareAndSet
In one line: Atomic classes update one variable lock-free: getAndX returns the old value, xAndGet the new, and compareAndSet stores only on a match.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.