concurrent 包

1)ReentrantLock 重入锁
2)LinkedBlockingDeque 两端都可取放:
putFirst
putLast
offerFirst
offerLast
3)LinkedBlockingQueue 一端取一端放:
只有一种put/offer方法
4)ConcurrentHashMap
5)ThreadPoolExecutor 线程池构造
6)AtomicBoolean/AtomicInteger/AtomicLong etc

猜你喜欢

转载自blog.csdn.net/liubin192837/article/details/82969345