int
|
activeCount()
Returns an estimate of the number of active threads in this
thread group.
|
int
|
activeGroupCount()
Returns an estimate of the number of active groups in this
thread group.
|
boolean
|
allowThreadSuspension(boolean b)
This method is deprecated.
The definition of this call depends on suspend() ,
which is deprecated. Further, the behavior of this call
was never specified.
|
final
void
|
checkAccess()
Determines if the currently running thread has permission to
modify this thread group.
|
final
void
|
destroy()
Destroys this thread group and all of its subgroups.
|
int
|
enumerate(Thread[] list)
Copies into the specified array every active thread in this
thread group and its subgroups.
|
int
|
enumerate(ThreadGroup[] list, boolean recurse)
Copies into the specified array references to every active
subgroup in this thread group.
|
int
|
enumerate(Thread[] list, boolean recurse)
Copies into the specified array every active thread in this
thread group.
|
int
|
enumerate(ThreadGroup[] list)
Copies into the specified array references to every active
subgroup in this thread group.
|
final
int
|
getMaxPriority()
Returns the maximum priority of this thread group.
|
final
String
|
getName()
Returns the name of this thread group.
|
final
ThreadGroup
|
getParent()
Returns the parent of this thread group.
|
final
void
|
interrupt()
Interrupts all threads in this thread group.
|
final
boolean
|
isDaemon()
Tests if this thread group is a daemon thread group.
|
synchronized
boolean
|
isDestroyed()
Tests if this thread group has been destroyed.
|
void
|
list()
Prints information about this thread group to the standard
output.
|
final
boolean
|
parentOf(ThreadGroup g)
Tests if this thread group is either the thread group
argument or one of its ancestor thread groups.
|
final
void
|
resume()
This method is deprecated.
This method is used solely in conjunction with
Thread.suspend and ThreadGroup.suspend,
both of which have been deprecated, as they are inherently
deadlock-prone. See suspend() for details.
|
final
void
|
setDaemon(boolean daemon)
Changes the daemon status of this thread group.
|
final
void
|
setMaxPriority(int pri)
Sets the maximum priority of the group.
|
final
void
|
stop()
This method is deprecated.
This method is inherently unsafe. See
stop() for details.
|
final
void
|
suspend()
This method is deprecated.
This method is inherently deadlock-prone. See
suspend() for details.
|
String
|
toString()
Returns a string representation of this Thread group.
|
void
|
uncaughtException(Thread t, Throwable e)
Called by the Java Virtual Machine when a thread in this
thread group stops because of an uncaught exception, and the thread
does not have a specific Thread.UncaughtExceptionHandler
installed.
|