Java -- What is the most efficient way to synchronize an ArrayList? Java -- What is the most efficient way to synchronize an ArrayList? multithreading multithreading

Java -- What is the most efficient way to synchronize an ArrayList?


List<YourObject> syncList = Collections.synchronizedList(yourList);


The best mechanism is to do your work in the GL thread and queue operations to be executed. If there is only ever one thread accessing the list, there is no problem.