AtomicInteger lazySet vs. set
Cited straight from “JDK-6275329: Add lazySet methods to atomic classes”: As probably the last little JSR166 follow-up for Mustang, we added a “lazySet” method to the Atomic classes (AtomicInteger, AtomicReference, etc). This is a niche method that is sometimes useful when fine-tuning code using non-blocking data structures. The semantics are that the write is guaranteed … Read more