Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Main methods and threads

  Asked By: Dukker    Date: Feb 13    Category: Java    Views: 943
  

I want to write a program whose main method sets off three threads
and then waits until the threads have passed back at least three
values (inputstreams in this case).

How do you make the main method wait?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Bonifaco Garcia     Answered On: Feb 13

simply call join() method

Ming wrote:I want to write  a program  whose main  method sets off three threads
and then waits until the threads  have passed  back at least three
values (inputstreams in this case).

How do you make the main method  wait?

 
Didn't find what you were looking for? Find more on Main methods and threads Or get search suggestion and latest updates.




Tagged: