| Author |
working of join() methord in Thread
|
Gaurav Chhabras
Ranch Hand
Joined: Sep 21, 2005
Posts: 126
|
|
can someone please tell me the exact working of " join() " methord in Thread. Thanks Regards Gaurav
|
 |
Kris Krason
Greenhorn
Joined: Aug 05, 2005
Posts: 25
|
|
|
This method waits until the thread (for which it was called) dies (ends its run() method)
|
Kris Krason<br />SCJP1.4 (96%)<br />SCJP1.5 (91%)<br /> <br />See my <a href="http://krisreviews.com/2006/12/code-complete-second-edition/" target="_blank" rel="nofollow">Code Complete review</a><br /> <br /><a href="http://www.coderookie.com/2006/tutorial/the-pseudocode-programming-process/" target="_blank" rel="nofollow">Pseudocode Programming Process</a>
|
 |
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
|
|
Thread.join () method lets one thread to join to the end of other thread. It will run only after the other thread completes the execution. If a thread named 'x' cannot do it's work until other thread 'Y' completes then 'X' should join 'Y' Now X will run only after 'Y' completes it's work [ October 14, 2005: Message edited by: Srinivasa Raghavan ]
|
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
|
 |
 |
|
|
subject: working of join() methord in Thread
|
|
|