![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA并发包学习
文章平均质量分 77
奔跑的长颈鹿
这个作者很懒,什么都没留下…
展开
-
volatile、非volatile、Atomic计数器比较
import java.util.concurrent.atomic.AtomicInteger; public class Atomicity { private static volatile int nonAtomicCounter = 0; private static long nonVolNonAtomicCountter = 0; private static vol原创 2016-04-11 15:56:13 · 451 阅读 · 0 评论 -
线程池测试
import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import原创 2016-04-18 15:41:30 · 347 阅读 · 0 评论 -
JAVA多线程计算ExecutorService
import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import原创 2016-04-18 15:44:38 · 292 阅读 · 0 评论