OctopusLian / leetcode-solutions

LeetCode,LintCode,牛客网,企业题库,《Sword to Offer》,《Cracking the Coding Interview》题解
MIT License
4 stars 4 forks source link

每日一题:java中LongAdder和AtomicLong有什么区别?(京东金融) #182

Closed OctopusLian closed 2 years ago

OctopusLian commented 4 years ago

https://www.yuque.com/fudadajiagoushimeiriyiti/rqui93/asw1ck 简单回答:AtomicLong是CAS操作。LongAdder是多个单元操作。