| Author |
Threads
|
sri latha
Greenhorn
Joined: Mar 03, 2006
Posts: 27
|
|
|
Hi iam new to this forum.can anyone give clear about threads join()method.
|
 |
ashish kediya
Greenhorn
Joined: Mar 02, 2006
Posts: 15
|
|
Originally posted by chitti tnk: Hi iam new to this forum.can anyone give clear about threads join()method.
same as when any guest join us
|
 |
ashish kediya
Greenhorn
Joined: Mar 02, 2006
Posts: 15
|
|
Originally posted by chitti tnk: Hi iam new to this forum.can anyone give clear about threads join()method.
theard behave same as when any guest join us
|
 |
ashish kediya
Greenhorn
Joined: Mar 02, 2006
Posts: 15
|
|
Originally posted by chitti tnk: Hi iam new to this forum.can anyone give clear about threads join()method.
|
 |
Edisandro Bessa
Ranch Hand
Joined: Jan 19, 2006
Posts: 584
|
|
Welcome chitti, The join() method lets one thread join onto the end of another thread. join() method puts the current thread (the thread which is calling the join method) to don't perform its work until the other thread enters in dead state (when its run() method finishes). It doesn't mean the immediately after a thread finishes its run method(enters in a dead state) the other thread (that called join() method) will start to run. Maybe the thread still have to wait due to another thread with higher priority has been selected by JVM or something like this. It is up to JVM.
|
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
|
 |
sri latha
Greenhorn
Joined: Mar 03, 2006
Posts: 27
|
|
|
thanks,i doubted which thread wheather guest thread or the thread in which it is joined executes first.now i understood.thanks
|
 |
 |
|
|
subject: Threads
|
|
|