Inside the run method of the Thread class have a boolean method take value true when it finishes. That variable will be declared as an attribute of the class.
When you call the thread have a while loop checking that variable when it becomes true you will exit the loop
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
Offline 3,258 posts
since Dec 2007