Joining a dead thread

B

Brian J. Sayatovic

What happens if you call Thread.join() on a Thread that is already
dead? The JavaDocs (from 1.3.1, which I'm stuck on for now) don't
specifically say. I hope that the result is that join() just returns
immediately, as that is the intention of join() -- to make one thread
wait while another one is still busy.

Regards,
Brian.
 
S

Steve Horsley

Brian said:
What happens if you call Thread.join() on a Thread that is already
dead? The JavaDocs (from 1.3.1, which I'm stuck on for now) don't
specifically say. I hope that the result is that join() just returns
immediately, as that is the intention of join() -- to make one thread
wait while another one is still busy.

Regards,
Brian.

Yes - it's an immediate return.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top