HashMap

HashMap1.8中可能线程不安全情况:

1.数组的初始化

解决:ConcurrentHashMap使用CAS无锁化

 

posted @ 2019-11-22 16:43  123xp  阅读(138)  评论(0编辑  收藏  举报