AtomicReference, a sometimes easier alternative to synchronized blocks
Brian Goetz lists AtomicReference in his the book Java Concurrency in Practice in the in the section advanced topics. Yet we will see that AtomicReference are, for specific use cases, easier to use than synchronized blocks. And the new JDK 8 getAndUpdate and updateAndGet methods make AtomicReference, even more, easier to use.
Read full article from AtomicReference, a sometimes easier alternative to synchronized blocks
No comments:
Post a Comment