摘要:
我的观点fail-fast是什么就不多解释了,应该注意到的是(以ArrayList为例):modCount位于AbstractList中, protected transient int modCount = 0; 并无volatile修饰,因此当两线程是共用同一个cpu时才会抛出并发修改异常。比如 阅读全文
posted @ 2020-02-22 19:23
Allen没有青春
阅读(246)
评论(0)
推荐(0)
浙公网安备 33010602011771号