list,set,map,线程不安全的解决方案


list

 

synchronize效率低,lock效率高。

 set

 

hashmap原理