If you want, create a new Thread object and start it. Thread has a lifecycle. Each thread is unique. Why do you want to start a Thread twice? It cant get birth twice. What is your opinion?
Say you make a journey from A to B. A journey done is gone. To again go from A to B, you've to start a new journey. Its like Once A human being dies and life ends, he can't re-start his life:-) - the JVM [Yamaraj] marks the Thread[human being] as DEAD. Makes me wonder if our Yamaraj too uses .start() method:-)
6 comments:
If you want, create a new Thread object and start it. Thread has a lifecycle. Each thread is unique. Why do you want to start a Thread twice? It cant get birth twice. What is your opinion?
@Bala Vijay
your answer is absolutely rocking :-).
Say you make a journey from A to B. A journey done is gone. To again go from A to B, you've to start a new journey. Its like Once A human being dies and life ends, he can't re-start his life:-) - the JVM [Yamaraj] marks the Thread[human being] as DEAD. Makes me wonder if our Yamaraj too uses .start() method:-)
@lakshmi: Thanks Guruji :-)
in case of creating a thread and killing it and assigning back to another client requires of starting thread twice
@Sandy, Nice real life example...
Thanks and carry on...
Post a Comment