APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.runtime

public Class ThreadState

extends Object
Class Inheritance

This is a type-safe enum mirroring the ThreadState enum in osThread.hpp. The conversion between the underlying ints and these values is done in OSThread.

Field Summary

Modifier and TypeField and Description
public static final ThreadState
ALLOCATED

Memory has been allocated but not initialized

public static final ThreadState
BREAKPOINTED

Suspended at breakpoint

public static final ThreadState
CONDVAR_WAIT

Waiting on a condition variable

public static final ThreadState
INITIALIZED

The thread has been initialized but yet started

public static final ThreadState
MONITOR_WAIT

Waiting on a contended monitor lock

public static final ThreadState
OBJECT_WAIT

Waiting on an Object.wait() call

private String
public static final ThreadState
RUNNABLE

Has been started and is runnable, but not necessarily running

public static final ThreadState
SLEEPING

Thread.sleep()

public static final ThreadState
ZOMBIE

All done, but not reclaimed yet

Constructor Summary

AccessConstructor and Description
private
ThreadState(String printVal)

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALLOCATEDback to summary
public static final ThreadState ALLOCATED

Memory has been allocated but not initialized

BREAKPOINTEDback to summary
public static final ThreadState BREAKPOINTED

Suspended at breakpoint

CONDVAR_WAITback to summary
public static final ThreadState CONDVAR_WAIT

Waiting on a condition variable

INITIALIZEDback to summary
public static final ThreadState INITIALIZED

The thread has been initialized but yet started

MONITOR_WAITback to summary
public static final ThreadState MONITOR_WAIT

Waiting on a contended monitor lock

OBJECT_WAITback to summary
public static final ThreadState OBJECT_WAIT

Waiting on an Object.wait() call

printValback to summary
private String printVal
RUNNABLEback to summary
public static final ThreadState RUNNABLE

Has been started and is runnable, but not necessarily running

SLEEPINGback to summary
public static final ThreadState SLEEPING

Thread.sleep()

ZOMBIEback to summary
public static final ThreadState ZOMBIE

All done, but not reclaimed yet

Constructor Detail

ThreadStateback to summary
private ThreadState(String printVal)

Method Detail

getPrintValback to summary
public String getPrintVal()