top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain the available thread states in a high-level?

+1 vote
1,367 views
Explain the available thread states in a high-level?
posted Jan 13, 2015 by Shyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

During its execution, a thread can reside in one of the following states:

NEW: The thread becomes ready to run, but does not necessarily start running immediately.

RUNNABLE: The Java Virtual Machine (JVM) is actively executing the thread’s code.

BLOCKED: The thread is in a blocked state while waiting for a monitor lock.

WAITING: The thread waits for another thread to perform a particular action.

TIMED_WAITING: The thread waits for another thread to perform a particular action up to a specified waiting time.

TERMINATED: The thread has finished its execution.
answer Jan 14, 2015 by Karthick.c
...