开发者

Java Concurrent API's

开发者 https://www.devze.com 2023-03-20 07:48 出处:网络
Can some one please explain how CAS(compare swap) machine instructions are leveraged by java concurrent A开发者_开发百科PI\'s?CAS instructions are used in the Atomic* classes.

Can some one please explain how CAS(compare swap) machine instructions are leveraged by java concurrent A开发者_开发百科PI's?


CAS instructions are used in the Atomic* classes. For why you would want to use them vs volatile, see here.

0

精彩评论

暂无评论...
验证码 换一张
取 消