Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to join threads in a static context?

807607Nov 9 2006 — edited Nov 9 2006
Hi,

I have come across one situation where i have to join two threads in a staitc context.Is it possible?if yes..how?
for eg two threads r running..A,B
i want A to continue after only B has over.

so i called B.join()...but it is giving error.."non staitc method can not be refered from staic context"

how to handle the situation?

Thnkingu
vej.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2006
Added on Nov 9 2006
4 comments
56 views