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:-)
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?
ReplyDelete@Bala Vijay
ReplyDeleteyour 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:-)
ReplyDelete@lakshmi: Thanks Guruji :-)
ReplyDeletein case of creating a thread and killing it and assigning back to another client requires of starting thread twice
ReplyDelete@Sandy, Nice real life example...
ReplyDeleteThanks and carry on...