版权声明:欢迎转载 https://blog.csdn.net/weixin_33387378/article/details/87702601
1.entity的key可以为null,被取代
2.两个entity相互调用,行程死循环
有可能是一个线程entityA的next结点是entityB,而另一个线程的entityB的next结点是entityA,这样形成了死循环
concurrenthashmap 线程安全的主要原因是它实现了分段锁,
1.entity的key可以为null,被取代
2.两个entity相互调用,行程死循环
有可能是一个线程entityA的next结点是entityB,而另一个线程的entityB的next结点是entityA,这样形成了死循环
concurrenthashmap 线程安全的主要原因是它实现了分段锁,