![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java并发
weixin_42246923
这个作者很懒,什么都没留下…
展开
-
HashMap JDK1.7线程安全问题
https://www.cnblogs.com/developer_chan/p/10450908.html原创 2021-04-04 15:09:17 · 83 阅读 · 0 评论 -
ThreadLocal
public T get() { Thread t = Thread.currentThread(); ThreadLocalMap map = getMap(t); if (map != null) { ThreadLocalMap.Entry e = map.getEntry(this); if (e != null) { @SuppressWarnings("unc...原创 2021-03-28 12:59:59 · 42 阅读 · 0 评论 -
CountDownLatch
A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.原创 2021-03-21 23:52:30 · 45 阅读 · 0 评论 -
CopyOnWriteArrayList
A thread-safe variant of {@link java.util.ArrayList} in which all mutative operations ({@code add}, {@code set}, and so on) are implemented by making a fresh copy of the underlying array.当我们往一个容器添加元素的时候,不直接往当前容器添加,而是先将当前容器进行 Copy,复制出一个新的容器,然后新的容器里添加元素,添.原创 2021-03-21 22:07:44 · 44 阅读 · 0 评论