This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to create a synchronized arraylist without using collections class
 
It's not a secret anymore!