What is the LifeCycle of Thread in Java?
问题 In java when we create an object of thread Thread t1 = new Thread(Runnable object); t1.start(); What are the different stages of lifecycle of thread t1 and after execution of run() will be the state of t1 ? 回答1: A thread goes through various stages in its life cycle. For example, a thread is born, started, runs, and then dies. Following diagram shows the complete life cycle of a thread. Java Thread Above-mentioned stages are explained here: New: A new thread begins its life cycle in the new