摘要:
1. 先来了解ConcurrentHashMap中的几个成员,当然大多数与HashMap中的相似,我们只看独有的成员 /** * The default concurrency level for this table, used when not * otherwise specified in 阅读全文
摘要:
在ConcurrentHashMap(1.8)中与HashMap非常相似,只不过它是线程安全的,在这里主要分析一下putVal()方法,看看与HashMap的区别。 final V putVal(K key, V value, boolean onlyIfAbsent) { if (key == n 阅读全文