黑马程序员技术交流社区

标题: 大家会不会这个啊/ [打印本页]

作者: 华子    时间: 2014-6-17 21:43
标题: 大家会不会这个啊/
ArrayList 是线程不同步的,Vector是线程同步的,那LinkedList是同不同步呢?
作者: 小坏坏    时间: 2014-6-17 22:07
你不会百度。。。。。
作者: 崔湖尧    时间: 2014-6-17 22:08
查阅Java Api 文档,有关LinkedList有以下解释:
Note that this implementation is not synchronized. If multiple threads access a linked list concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally.
即LinkedList 是线程不同步的。
作者: java木    时间: 2014-6-17 22:28
不同步你这纯属水帖
作者: wangmin    时间: 2014-6-17 22:37
我也觉得水贴  百度下或者查看下API就知道了
作者: 人心如水    时间: 2014-6-17 22:55
查看API  ,不懂得类就看API 很明白,或者自己写下看源码也是一个很好的办法。
作者: yinxjfly    时间: 2014-6-18 00:22
水贴一枚!




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2