之前详细看过Hashmap的源码,知道线程不安全用ConcurrentHashMap处理,不过ConcurrentHashMap的源码还没细看过,学习一下: 强力推荐:一文看懂ConcurrentHashMap