Map安全
List.net
Set线程
https://blog.csdn.net/fan2012huan/article/details/51094454blog
https://blog.csdn.net/qazwyc/article/details/76686915索引
https://blog.csdn.net/z240336124/article/details/84326301rem
set remove的核心 public boolean remove(Object o) {
return map.remove(o)==PRESENT;
}
set 没有get方法. 核心是HashMap的keySet. 因此不能指定随机索引位置查找。 只能经过set的iterator()来操做haspMap对于实例保存的entry table 进行从前至后按链路next查找。
get
CopyOnWriteArrayList
it
是经过 ReentrantLock.lock的方式来控制线程安全下的生产与消费table