摘要: ConcurrentHashMap的特色就是分段锁技术,相对于HashMap和HashTable效率提高了。 ConcurrentHashMap包含了一个Segment[], 每个Segment包含一个HashEntry[]。 Segment其实是一个ReentrantLock。 定位到segmen 阅读全文
posted @ 2017-03-07 16:10 idea偶买噶 阅读(142) 评论(0) 推荐(0) 编辑