Loading

摘要: [TOC] 简介 由于HashMap是非线程安全的,而且HashTable和Collections.synchronizedMap()的效率很低(基本上是对读写操作加锁,一个线程在使用,其他线程必须等待)。因此可以使用并发安全的ConcurrentHashMap。 ConcurrentHashMap 阅读全文
posted @ 2018-02-23 17:43 Shadowdsp 阅读(386) 评论(0) 推荐(0) 编辑