posted 18 years ago
Hi srikant,
The run() method of the thread is being called in the method after start() method. However for the run() method to get executed standalone, the thread object must not reset or dead. If the thread object is dead, then run() method won't get executed and hence the output. You can try this by putting a join() before run() method in the code.