Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Threads and Synchronization and the fly likes how to create a synchronized arraylist without using collections class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "how to create a synchronized arraylist without using collections class" Watch "how to create a synchronized arraylist without using collections class" New topic
Author

how to create a synchronized arraylist without using collections class

Amit Indore
Ranch Hand

Joined: Jun 20, 2008
Posts: 31
how to create a synchronized arraylist without using collections class?

i do not want to use Collections.synchronizedList()
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Amit Indore wrote:how to create a synchronized arraylist without using collections class?

i do not want to use Collections.synchronizedList()


Why not?

Anyways, make an ArrayLst where every method which accesses the data is synchronized.


Steve
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to create a synchronized arraylist without using collections class
 
It's not a secret anymore!