Package | Description |
---|---|
java.lang |
Modifier and Type | Method and Description |
---|---|
static Thread |
Thread.currentThread()
currentThread() returns the Thread object corresponding to the
currently running thread (i.e., the calling thread).
|
Modifier and Type | Method and Description |
---|---|
void |
Runtime.addShutdownHook(Thread t)
Add a Thread to the list of threads to be started when we decide
to shut down the system.
|
void |
SecurityManager.checkAccess(Thread t)
Checks whether the caller has permission to modify Thread t.
|
static int |
Thread.enumerate(Thread[] threads)
enumerate() enumerates the active threads in the current ThreadGroup
and its child groups.
|
int |
ThreadGroup.enumerate(Thread[] threads)
enumerate(Thread[] threads) --> enumerate(Thread[] threads, false).
|
int |
ThreadGroup.enumerate(Thread[] threads,
boolean recurse) |
boolean |
Runtime.removeShutdownHook(Thread t)
Remove a Thread from the list of threads to be started when we decide
to shut down the system.
|
void |
ThreadGroup.uncaughtException(Thread t,
Throwable e)
uncaughtException(Thread t, Throwable e)
handles exceptions thrown by any thread in this group and not caught
by any exception handler in that thread's execution stack.
|