JAVA数据结构

1.数据结构参考https://blog.csdn.net/qq_29631809/article/details/72599708

线程不安全数据结构可通过Collections.synchronized*创建同步对象

List  syncList= Collections.synchronized(new ArrayList());//Vector是同步

Map m = Collections.synchronizeMap(hashMap);

 

2.多线程:http://www.importnew.com/21089.html

posted @ 2018-05-29 16:48  Hannah_He  阅读(96)  评论(0编辑  收藏  举报