Thread Lifecycle
NEW → RUNNABLE → BLOCKED / WAITING / TIMED_WAITING → TERMINATED.
Easy
thread.getState() shows the current state — useful when diagnosing hangs with thread dumps.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.