Can anyone post up a code example of just Thread.join(), Where should ThreadInstance.join() be placed? I tried writing this code:
To my understanding, the problem here is: when the compiler hits try catch block, main() is still the running thread, My question is: How do I make sure that join is called when a is the current running Thread.
"Manuj", welcome to JavaRanch! Please read our JavaRanch Naming Policy and change your displayed name to conform with it. In your case we require a displayed name in the format <first name> <family name> (in that order). Thanks -Barry