I gone thru' the maha's discussion regarding thread. There it is clearly written that "MAIN THREAD IS ALIVE TILL ANY CHILD THREAD IS ALIVE" but from the program added below gives a different picture. So i expect some comments on this...
------------------ S.Jeganathan MCA Software Engg. PSI Data Systems Ltd., Bangalore. firstname.lastname@example.org
S.Jeganathan MCA<BR>Software Engg.<BR>PSI Data Systems Ltd.,<BR>Bangalore.<BR>email@example.com
it is because you created a new thread at this line: t1 = Thread.currentThread(); the method currentThread() returned a Thread which you assigned to t1. now t1 points at the same Thread the JVM is running(which is executing main at the moment).