This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Concurrent processing by 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Concurrent processing by threads." Watch "Concurrent processing by threads." New topic
Author

Concurrent processing by threads.

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
Hi Friends,
I am trying to implement concurrence processing in java by threads.
From a main process I want to start 2 child processes. Then main process has to wait until all of its child processes got completed. Here 2 child processes can run parallel.
So how can I stop main thread until all children execution get completed.
Thanks in advance,
Yamini.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Check out the Join method of the Thread class.
Corey


SCJP Tipline, etc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Concurrent processing by threads.
 
Similar Threads
Limit concurrent threads; report successful execution; terminating hung threads
Concurrent processing by threads.
Process completes and abruptly stops its threads?
Java 1.6.0.20 broke my SwingWorker threads!
daemon thread and heavyweight concept