Home java Fast thread-safe Java collections

Fast thread-safe Java collections




Are there any libraries with concurrent collections that are faster than the standard java.util.concurrent package? I tried to find such a library but couldn’t find it. Personally, I’m interested in the thread-safe ArrayList , which is faster than the standard CopyOnWriteArrayList .

Answer 1, authority 100%

I have never tested it, try this method:

Collections.synchronizedList (new ArrayList & lt;? & gt; ())

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions