Quick revision
The short answer
java.lang.Thread.State has six values. NEW is a thread created but not started; RUNNABLE is running or ready to run, which also covers a thread blocked in native I/O such as a socket read; BLOCKED is waiting to enter a synchronized block or method held by another thread; WAITING is waiting without a timeout after Object.wait(), Thread.join() or LockSupport.park(); TIMED_WAITING is the same with a timeout, or Thread.sleep; and TERMINATED means run() has returned or thrown. Calling start() a second time throws IllegalThreadStateException.
What to remember
In this answer, we went through the six values of Thread.State. NEW is created but not started; RUNNABLE is running or ready, including blocked in native I/O such as a socket read; BLOCKED is waiting for a monitor held by another thread; WAITING follows wait(), join() or LockSupport.park() without a timeout, and TIMED_WAITING the same with a timeout or Thread.sleep; TERMINATED follows the end of run(). We also saw that start() can be called only once, and that a second call throws IllegalThreadStateException.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
java.lang.Thread.State has six values. NEW is a thread created but not started; RUNNABLE is running or ready to run, which also covers a thread blocked in native I/O such as a socket read; BLOCKED is waiting to enter a synchronized block or method held by another thread; WAITING is waiting without a timeout after Object.wait(), Thread.join() or LockSupport.park(); TIMED_WAITING is the same with a timeout, or Thread.sleep; and TERMINATED means run() has returned or thrown. Calling start() a second time throws IllegalThreadStateException.
Why this question is asked
Thread states are what we read in every thread dump, and thread dumps are how we diagnose a stuck or slow Java service. Knowing that a thread is BLOCKED rather than WAITING tells us whether to look for a contended lock or a missing notification; knowing that RUNNABLE can mean waiting on a socket stops us from chasing a CPU problem that does not exist. Interviewers ask for the states and the actions that cause them because it shows whether we can read a dump correctly. In this answer, we will go through each state with a small example that puts a thread into it, look at how the states connect, and finish with the rule about calling start twice.
1A Quick Recap: Where Thread States Come From
A Java thread is an object of class Thread plus, once started, an execution path that the JVM schedules. Thread.getState() reports which of six states, defined in the enum Thread.State, the thread is in at that moment, and thread dumps from jstack or jcmd print the same states. These are JVM states, not operating system states, which matters later when we look at I/O.
The states describe what the thread is waiting for, if anything. A thread can be not yet started, able to run, waiting for a monitor lock, waiting for something with no deadline, waiting with a deadline, or finished.
2NEW, RUNNABLE and TERMINATED
A thread is NEW after its constructor runs and before start() is called. It is just an object; no execution path exists yet. Calling start() asks the JVM to create one, and the thread moves to RUNNABLE. RUNNABLE covers both actually executing on a CPU and being ready to run while waiting for the scheduler; Java does not distinguish the two.
When run() returns normally or throws an uncaught exception, the thread becomes TERMINATED and stays that way forever.
There is one important subtlety in RUNNABLE. A thread blocked in native code, for example reading from a socket that has no data yet, still reports RUNNABLE, because from the JVM's point of view it is executing a native method. A thread dump full of RUNNABLE threads therefore does not prove the CPU is busy.
3BLOCKED: Waiting for a Monitor
BLOCKED has one specific meaning: the thread wants to enter a synchronized block or method, and another thread holds that monitor. It also covers a thread returning from Object.wait() that must reacquire the monitor before continuing.
Notice that threads waiting for a java.util.concurrent lock, such as ReentrantLock, are not BLOCKED. Those locks park the thread with LockSupport, so it shows as WAITING or TIMED_WAITING, and the dump names the lock as a parking object instead of a monitor.
4WAITING and TIMED_WAITING
WAITING means the thread has deliberately stopped until another thread does something, with no deadline. Three actions cause it: Object.wait() without a timeout, which waits for notify or notifyAll; Thread.join() without a timeout, which waits for another thread to terminate; and LockSupport.park(), the primitive used by ReentrantLock, BlockingQueue.take and most of java.util.concurrent. TIMED_WAITING is the same family with a deadline: Thread.sleep(ms), wait(ms), join(ms), LockSupport.parkNanos and parkUntil, and timed versions like poll(timeout) on a queue.
| State | Example action | Leaves when |
|---|---|---|
| NEW | new Thread(r) | start() is called |
| RUNNABLE | start(); computing or in a native socket read | It waits, blocks or finishes |
| BLOCKED | Entering synchronized held by another thread | The monitor is released |
| WAITING | wait(), join(), LockSupport.park() | notify, thread ends, unpark, interrupt |
TIMED_WAITING | sleep(ms), wait(ms), join(ms), parkNanos | Timeout, or the same wake-ups |
| TERMINATED | run() returned or threw | Never |
Each waiting thread leaves the state in a known way: notify, the joined thread ending, unpark, the timeout expiring, or an interrupt. If many threads are WAITING forever in a dump, the question is who was supposed to wake them.
5Follow-up questions
Why does Java not have a separate RUNNING state?
Because the JVM delegates scheduling to the operating system and does not track whether a runnable thread is on a CPU at this instant. To see actual CPU use, combine the thread dump with per-thread CPU from top -H or JFR.
What state is a virtual thread in while it waits on a socket?
Virtual threads park when they block on most I/O, so a virtual thread waiting on a socket typically shows as WAITING rather than RUNNABLE, and its carrier thread is free to run other virtual threads. Platform threads in the same read show RUNNABLE.
Can a thread go from TERMINATED back to RUNNABLE?
No. A Thread object runs at most once. To run the same work again, create a new Thread or, better, submit the Runnable to an ExecutorService, which reuses its own threads internally.
6Conclusion
In this answer, we went through the six values of Thread.State. NEW is created but not started; RUNNABLE is running or ready, including blocked in native I/O such as a socket read; BLOCKED is waiting for a monitor held by another thread; WAITING follows wait(), join() or LockSupport.park() without a timeout, and TIMED_WAITING the same with a timeout or Thread.sleep; TERMINATED follows the end of run(). We also saw that start() can be called only once, and that a second call throws IllegalThreadStateException.
Open with
There are six states in Thread.State. NEW is a thread object that's been constructed but start hasn't been called. After start it's RUNNABLE, which means either running on a CPU or ready to run; Java doesn't separate those.
Then, if they want more
One thing to remember is that a thread blocked in native I/O, like a socket read, also shows RUNNABLE, because the JVM just sees it executing a native method, so a dump full of RUNNABLE threads doesn't necessarily mean the CPU is busy. BLOCKED is specifically waiting to enter a synchronized block or method whose monitor another thread holds.
WAITING is waiting indefinitely for another thread: Object.wait without a timeout, Thread.join without a timeout, or LockSupport.park, which is what ReentrantLock and blocking queues use, so a thread waiting on a ReentrantLock shows WAITING, not BLOCKED. TIMED_WAITING is the same family with a deadline: Thread.sleep, wait or join with a timeout, parkNanos, or a timed poll on a queue.
Finally, TERMINATED means run has returned or thrown an exception. A thread object can only be started once; calling start a second time throws IllegalThreadStateException, so to rerun the work you create a new thread or submit it to an executor.
In practice I use these states when reading thread dumps: BLOCKED points to lock contention, lots of WAITING points to who should be waking them, and RUNNABLE with low CPU usually means threads stuck on I/O.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- java.util.concurrent, package documentation, JLS chapter 17, Threads and Locks
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "List the states of java.lang.Thread.State and give an action that moves a thread into...": https://scrivio-interview-library.netlify.app/java/threads/f4e64a5d71/