Waiting for the end of multiple threads

From: Andrea B. (andrea.bennati_at_etrinf.it)
Date: 08/31/04


Date: 31 Aug 2004 03:56:51 -0700

In my java application i need to launch several parallel threads to
execute elementary parts of a complex calculation.
 
So, the main application should wait for the end of all the threads
and evaluate a general result.
 
I also have to notify to the main application when some thread exceed
a maximum timeout.
 
Could someone tell me how to implement this programming logic in Java?
 
I would be grateful if you could send me some sample code.
 
Thanks in advance



Relevant Pages

  • Re: Waiting for the end of multiple threads
    ... > In my java application i need to launch several parallel threads to ... > execute elementary parts of a complex calculation. ... > Could someone tell me how to implement this programming logic in Java? ...
    (comp.lang.java.programmer)
  • Re: Remote desktop
    ... I use MindTerm (it's free, written in Java, so runs on just about anything) ... I launch vnc or vino ... If your Ubuntu has the java applets for the VNC server, ... MindTerm, then open the tunnels, then open http://localhost:5801/ and voila, ...
    (Ubuntu)
  • Cannot launch simple applications (notepad, java) using Apache and PERL(CGI)
    ... web-page running on Apache. ... a java file. ... I have a simple perl script to run these. ... unable to get them to launch from an IE browser running on apache: ...
    (comp.lang.perl.misc)
  • Cannot launch simple applications (notepad, java) using Apache and PERL(CGI)
    ... web-page running on Apache. ... a java file. ... I have a simple perl script to run these. ... unable to get them to launch from an IE browser running on apache: ...
    (comp.lang.perl)
  • Re: problem launching java app
    ... > trying to launch a Java application from a launcher ... > icon on my stock FC2 ... > couple other Java apps and the same thing happens to ...
    (Fedora)