LIst集合线程安全实现

直接上代码,目前没有找到比这性能更好的方法


List<String> safe = Collections.synchronizedList(new ArrayList<String>());

猜你喜欢

转载自blog.csdn.net/h4241778/article/details/107349123