Java Thread States

From NovaOrdis Knowledge Base
Revision as of 23:39, 24 January 2016 by Ovidiu (talk | contribs) (Created page with "=External= * https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.State.html =Internal= * java Threads !!!Java Thread States =Overview= T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

!!!Java Thread States

Overview

These states are virtual machine states which do not reflect any operating system thread states:

NEW

A thread that has not yet started.

RUNNABLE

A "RUNNABLE" thread may be using CPU or waiting for the results of an I/O operation.

BLOCKED

The thread is attempting to acquire a monitor lock that is currently being held by other thread.

WAITING

The thread called Object.wait(), released its all monitors and is waiting to be notified (by some other thread calling ) Object.notify()). The thread can be waiting indefinitely in this state.

TIMED_WAITING

A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.

TERMINATED

A thread that exited.

__Referenced by:__\\ [{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]