| Author |
threads??
|
srikanth reddy
Ranch Hand
Joined: Jul 28, 2005
Posts: 252
|
|
here i understand what this code trying to do...but my doubt is here we have not used the start so how can the thread can be started... and so t1.join() means that main thread wont execute until the thread t1 has finished ..so i think the ouput should be blank...but actually its giving me END..
|
Thanks & Regards<br /> <br />-Srikanth
|
 |
Seb Mathe
Ranch Hand
Joined: Sep 28, 2005
Posts: 225
|
|
The join method checks if the thread is alive, and "A thread is alive if it has been started and has not yet died."
|
Regards,<br />Seb<br /> <br />SCJP 1.4
|
 |
 |
|
|
subject: threads??
|
|
|