aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1368
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
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
What is the point of having two threads if one of them will have to wait until the other is done?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multi threading - concurrently executing two threads
 
Similar Threads
Java Servlets and Threads - Am I in trouble ?
About Synchronization in Threads
what's the use of synchronizing the service in servlet?
Stateless Session Bean -> MDB (Thread)
VICTORY: Locking