aspose file tools
The moose likes Java in General and the fly likes Collections.synchronizedList Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Collections.synchronizedList" Watch "Collections.synchronizedList" New topic
Author

Collections.synchronizedList

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I have an ArrayList that I will be using that will get huge... So huge that it often gives me an "out of memory" error. I was trying to maybe see if I could create this ArrayList that grows and shrinks and thrtrfore will not stay large. Since the ArrayList will be static there is where the Collections.synchronizedList comes in.

Also, where could I find out more about Collections.synchronizedList.
The javadocs are not exactly the best docs to explain it for me.
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

http://java.sun.com/docs/books/tutorial/collections/implementations/wrapper.html
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Collections.synchronizedList
 
Similar Threads
If i use a Collections.synchronizedList () i still need to synchronize that list.
why some classes are called deprecated & some legacy?
Is my class thread safe? Help!
Array vs List vs Vector
synchronizedList() VS Vector