摘要: 为什么会有CopyOnWriteArrayList? 我们知道ArrayList和LinkedList实现的List都是非线程安全的,于是就有了Vector,它是基于ArrayList的线程安全集合,但Vector无论是add方法还是get方法都加上了synchronized修饰,当多线程读写Lis 阅读全文
posted @ 2021-01-18 17:57 叫练 阅读(618) 评论(0) 推荐(1)