Originally posted by Jeroen Wenting:
Do you want t2 to join t1 or do you want the application to join t1 before it even starts t2?
If the former you need to have a reference to t1 inside t2 and call join in t2.
If the latter, you call t1.join(); before you call t2.start();
application means main thread , right . so yes I can join it like t1.join() after t1.start() , that is solving my purpose ... because now t2 will start execution after t1 will get completed .
Jeroen , can you explain first one with some code .. please
thanks a lot .