How is LongAccumulator implemented, so that it is more efficient?

前端 未结 2 871
萌比男神i
萌比男神i 2021-02-05 18:50

I understand that the new Java (8) has introduced new sychronization tools such as LongAccumulator (under the atomic package).

In the documentation it says that the Long

2条回答
  •  被撕碎了的回忆
    2021-02-05 19:04

    by this

    http://codenav.org/code.html?project=/jdk/1.8.0-ea&path=/Source%20Packages/java.util.concurrent.atomic/LongAccumulator.java

    it looks like a spin lock.

提交回复
热议问题