AtomicInteger lazySet and set
- by Yan Cheng CHEOK
May I know what is the difference among lazySet and set method for AtomicInteger. javadoc doesn't talk much about lazySet :
Eventually sets to the given value.
It seems that AtomicInteger will not immediately be set to the desired value, but it will be scheduled to be set in some time. But, what is the practical use of this method? Any example?