Problems with race conditions on ConcurrentHashMap
问题 I got a multithreaded application in which n threads write to an ConcurrentHashMap . Another n Threads read from that Map and copy its Value to a copy List. After that the original List is removed from the map. For some reason I always get a ConcurrentModificationException . I even tried to create my own lock mechanism with a volatile boolean, but it won't work. When using Google Guava with Lists.newLinkedList() i get a ConcurrentModificationException . When using the StandardWay new