What are the Different States of a Thread in Java ?

Following are the different states of a Thread in Java..

  • New - In the New state the thread has not yet.
  • Runnable - A thread executing in the JVM is in Runnable state.
  • Blocked - A thread waiting for a monitor lock is in Blocked state.
  • Waiting - A thread waiting indefinitely for another thread to perform a particular action is in Waiting state.
  • Timed_waiting - A thread waiting for another thread to perform an action for up to a specified waiting time is in Timed_waiting state.
  • Terminated - A thread that has exited is in Terminated state.


You May Interest

What is the Difference Between Iterator and Enumeration in Java ?

How Can We Find the Memory Usage of JVM From Java Code ?

Why Do You Use Upcasting or Downcasting in Java ?

Why Should You Define a Default Constructor in Java ?

What are the Different Scopes of a JSP Object ?