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 multi threading - concurrently executing two threads 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 "multi threading - concurrently executing two threads" Watch "multi threading - concurrently executing two threads" New topic
Author

multi threading - concurrently executing two threads

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1396
I want to execute two threads concurrently using multi-threading. Can i just use synchronized (or) synchronized with wait() - when the first thread executes, second thread should wait until first thread finishes its execution?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
What is the point of having two threads if one of them will have to wait until the other is done?
 
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: multi threading - concurrently executing two threads
 
jQuery in Action, 3rd edition