| Author |
can i get an example which illustrate the use of join() method
|
Mr Anil Kumar Pandey
Greenhorn
Joined: Sep 13, 2010
Posts: 29
|
|
|
what join() method actually does??
|
 |
David Lidz
Greenhorn
Joined: Mar 30, 2011
Posts: 14
|
|
Using join suspends the caller until the thread that you invoke join on is done.
in pseudo code.
|
 |
Mr Anil Kumar Pandey
Greenhorn
Joined: Sep 13, 2010
Posts: 29
|
|
David Lidz wrote:Using join suspends the caller until the thread that you invoke join on is done.
in pseudo code.
sir, i m beginner
please provide me complete example
thanks
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
Mr Anil Kumar Pandey wrote:
please provide me complete example
thanks
It may be pseudo code, but it is very complete -- just wrap a class and method around it, call it from a main() method, and done.
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: can i get an example which illustrate the use of join() method
|
|
|