【发布时间】:2014-01-24 19:49:47
【问题描述】:
我想使用集合类在多线程中添加、删除和检索对象。
Collections.synchronizedList 和 Vector 两个类都是线程安全的。有没有人告诉我Collections.synchronizedList 和Vector 之间的区别,并解释我什么时候应该使用Vector 和Collections.synchronizedList?
【问题讨论】:
标签: java multithreading collections thread-safety