9 A Life Cycle of A Thread in Java
9 A Life Cycle of A Thread in Java
9 A Life Cycle of A Thread in Java
⇧ SCROLL TO TOP
https://www.javatpoint.com/life-cycle-of-a-thread 1/7
9/1/2021 Life cycle of a thread in Java - javatpoint
But for better understanding the threads, we are explaining it in the 5 states.
The life cycle of the thread in java is controlled by JVM. The java thread states are as follows:
1. New
2. Runnable
3. Running
4. Non-Runnable (Blocked)
5. Terminated
⇧ SCROLL TO TOP
https://www.javatpoint.com/life-cycle-of-a-thread 2/7
9/1/2021 Life cycle of a thread in Java - javatpoint
intellipaat.com
OPEN
1) New
The thread is in new state if you create an instance of Thread class but before the invocation of start()
method.
⇧ SCROLL TO TOP
https://www.javatpoint.com/life-cycle-of-a-thread 3/7
9/1/2021 Life cycle of a thread in Java - javatpoint
Ad
2) Runnable
The thread is in runnable state after invocation of start() method, but the
thread scheduler has not
selected it to be the running thread.
3) Running
The thread is in running state if the thread scheduler has selected it.
4) Non-Runnable (Blocked)
This is the state when the thread is still alive, but is currently not eligible to run.
5) Terminated
← Prev Next →
⇧ SCROLL TO TOP
https://www.javatpoint.com/life-cycle-of-a-thread 4/7
9/1/2021 Life cycle of a thread in Java - javatpoint
For Videos Join Our Youtube Channel: Join Now
Feedback
Preparation
⇧ SCROLL TO TOP
Aptitude Reasoning Verbal Ability Interview Questions
https://www.javatpoint.com/life-cycle-of-a-thread 5/7
9/1/2021 Life cycle of a thread in Java - javatpoint
Company Questions
Trending Technologies
B.Tech / MCA
https://www.javatpoint.com/life-cycle-of-a-thread 6/7
9/1/2021 Life cycle of a thread in Java - javatpoint
⇧ SCROLL TO TOP
https://www.javatpoint.com/life-cycle-of-a-thread 7/7