java中的向量是否同步 [英] vector in java is synchronized or not
本文介绍了java中的向量是否同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
java中的向量是否同步
vector in java is synchronized or not
推荐答案
原始文档 告诉我们:
Original documentation tells us:
与新的集合实现不同,矢量是同步的。如果不需要线程安全实现,建议使用ArrayList代替Vector。
Unlike the new collection implementations, Vector is synchronized. If a thread-safe implementation is not needed, it is recommended to use ArrayList in place of Vector.
这篇关于java中的向量是否同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文