A C D E G H I J M N O R S T U V Y 

A

activeCount() - Static method in class java.lang.Thread
Returns an estimate of the number of active threads in the current thread's thread group and its subgroups.

C

checkAccess() - Method in class java.lang.Thread
Determines if the currently running thread has permission to modify this thread.
clone() - Method in class java.lang.Thread
Throws CloneNotSupportedException as a Thread can not be meaningfully cloned.
countStackFrames() - Method in class java.lang.Thread
Deprecated.
The definition of this call depends on Thread.suspend(), which is deprecated. Further, the results of this call were never well-defined.
currentThread() - Static method in class java.lang.Thread
Returns a reference to the currently executing thread object.

D

destroy() - Method in class java.lang.Thread
Deprecated.
This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If it were to be implemented, it would be deadlock-prone in much the manner of Thread.suspend(). If the target thread held a lock protecting a critical system resource when it was destroyed, no thread could ever access this resource again. If another thread ever attempted to lock this resource, deadlock would result. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
dumpStack() - Static method in class java.lang.Thread
Prints a stack trace of the current thread to the standard error stream.

E

enumerate(Thread[]) - Static method in class java.lang.Thread
Copies into the specified array every active thread in the current thread's thread group and its subgroups.

G

getAllStackTraces() - Static method in class java.lang.Thread
Returns a map of stack traces for all live threads.
getContextClassLoader() - Method in class java.lang.Thread
Returns the context ClassLoader for this Thread.
getDefaultUncaughtExceptionHandler() - Static method in class java.lang.Thread
Returns the default handler invoked when a thread abruptly terminates due to an uncaught exception.
getId() - Method in class java.lang.Thread
Returns the identifier of this Thread.
getName() - Method in class java.lang.Thread
Returns this thread's name.
getPriority() - Method in class java.lang.Thread
Returns this thread's priority.
getStackTrace() - Method in class java.lang.Thread
Returns an array of stack trace elements representing the stack dump of this thread.
getState() - Method in class java.lang.Thread
Returns the state of this thread.
getThreadGroup() - Method in class java.lang.Thread
Returns the thread group to which this thread belongs.
getUncaughtExceptionHandler() - Method in class java.lang.Thread
Returns the handler invoked when this thread abruptly terminates due to an uncaught exception.

H

holdsLock(Object) - Static method in class java.lang.Thread
Returns true if and only if the current thread holds the monitor lock on the specified object.

I

interrupt() - Method in class java.lang.Thread
Interrupts this thread.
interrupted() - Static method in class java.lang.Thread
Tests whether the current thread has been interrupted.
isAlive() - Method in class java.lang.Thread
Tests if this thread is alive.
isDaemon() - Method in class java.lang.Thread
Tests if this thread is a daemon thread.
isInterrupted() - Method in class java.lang.Thread
Tests whether this thread has been interrupted.

J

java.lang - package java.lang
 
join() - Method in class java.lang.Thread
Waits for this thread to die.
join(long) - Method in class java.lang.Thread
Waits at most millis milliseconds for this thread to die.
join(long, int) - Method in class java.lang.Thread
Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.

M

MAX_PRIORITY - Static variable in class java.lang.Thread
The maximum priority that a thread can have.
MIN_PRIORITY - Static variable in class java.lang.Thread
The minimum priority that a thread can have.

N

NORM_PRIORITY - Static variable in class java.lang.Thread
The default priority that is assigned to a thread.

O

onSpinWait() - Static method in class java.lang.Thread
Indicates that the caller is momentarily unable to progress, until the occurrence of one or more actions on the part of other activities.

R

resume() - Method in class java.lang.Thread
Deprecated.
This method exists solely for use with Thread.suspend(), which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
run() - Method in class java.lang.Thread
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.

S

setContextClassLoader(ClassLoader) - Method in class java.lang.Thread
Sets the context ClassLoader for this Thread.
setDaemon(boolean) - Method in class java.lang.Thread
Marks this thread as either a daemon thread or a user thread.
setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Static method in class java.lang.Thread
Set the default handler invoked when a thread abruptly terminates due to an uncaught exception, and no other handler has been defined for that thread.
setName(String) - Method in class java.lang.Thread
Changes the name of this thread to be equal to the argument name.
setPriority(int) - Method in class java.lang.Thread
Changes the priority of this thread.
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class java.lang.Thread
Set the handler invoked when this thread abruptly terminates due to an uncaught exception.
sleep(long) - Static method in class java.lang.Thread
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers.
sleep(long, int) - Static method in class java.lang.Thread
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers.
start() - Method in class java.lang.Thread
Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
stop() - Method in class java.lang.Thread
Deprecated.
This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
stop(Throwable) - Method in class java.lang.Thread
Deprecated.
This method was originally designed to force a thread to stop and throw a given Throwable as an exception. It was inherently unsafe (see Thread.stop() for details), and furthermore could be used to generate exceptions that the target thread was not prepared to handle. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.
suspend() - Method in class java.lang.Thread
Deprecated.
This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling resume, deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.

T

Thread - Class in java.lang
A thread is a thread of execution in a program.
Thread.State - Enum in java.lang
A thread state.
Thread.UncaughtExceptionHandler - Interface in java.lang
Interface for handlers invoked when a Thread abruptly terminates due to an uncaught exception.
Thread() - Constructor for class java.lang.Thread
Allocates a new Thread object.
Thread(Runnable) - Constructor for class java.lang.Thread
Allocates a new Thread object.
Thread(Runnable, String) - Constructor for class java.lang.Thread
Allocates a new Thread object.
Thread(String) - Constructor for class java.lang.Thread
Allocates a new Thread object.
Thread(ThreadGroup, Runnable) - Constructor for class java.lang.Thread
Allocates a new Thread object.
Thread(ThreadGroup, Runnable, String) - Constructor for class java.lang.Thread
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group.
Thread(ThreadGroup, Runnable, String, long) - Constructor for class java.lang.Thread
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group, and has the specified stack size.
Thread(ThreadGroup, Runnable, String, long, boolean) - Constructor for class java.lang.Thread
Allocates a new Thread object so that it has target as its run object, has the specified name as its name, belongs to the thread group referred to by group, has the specified stackSize, and inherits initial values for inheritable thread-local variables if inheritThreadLocals is true.
Thread(ThreadGroup, String) - Constructor for class java.lang.Thread
Allocates a new Thread object.
toString() - Method in class java.lang.Thread
Returns a string representation of this thread, including the thread's name, priority, and thread group.

U

uncaughtException(Thread, Throwable) - Method in interface java.lang.Thread.UncaughtExceptionHandler
Method invoked when the given thread terminates due to the given uncaught exception.

V

valueOf(String) - Static method in enum java.lang.Thread.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum java.lang.Thread.State
Returns an array containing the constants of this enum type, in the order they are declared.

Y

yield() - Static method in class java.lang.Thread
A hint to the scheduler that the current thread is willing to yield its current use of a processor.
A C D E G H I J M N O R S T U V Y 
Skip navigation links