I'm using the hashmap for a tile based game. I'm converting the map into an array because I update these tiles in an update thread.
Type: Posts; User: Bingo90
I'm using the hashmap for a tile based game. I'm converting the map into an array because I update these tiles in an update thread.
I tried synchronised, but it made it too slow. Just one thread modifies the values, the other just read them.
Is it possible to access all values in a hashmap from another thread and changing the content at the same time without getting a java.util.ConcurrentModificationException?
If yes how? I'm getting...