AtomicInteger和AtomicLong
AtomicInteger和AtomicLong 这两个类都是线程安全的,且是原子操作的
在多线程环境和Lambda表达式中都是推荐使用的
标题:AtomicInteger和AtomicLong
作者:temp12138
地址:https://solo.mfyzl.icu/articles/2024/03/20/1710942642402.html
AtomicInteger和AtomicLong 这两个类都是线程安全的,且是原子操作的
在多线程环境和Lambda表达式中都是推荐使用的