Next: Threads: ThreadGroup Examples:
Up: Java Notes
Previous: Threads Example 7.1: Deadlock
-
ThreadGroup
class, getThreadGroup()
-
activeCount()
: no of threads in the group
-
activeGroupCount()
: no of active groups in the group
-
checkAccess()
: check current thread's permission to modify the group
-
getMaxPriority()
: maximum priority of the group
-
setMaxPriority()
: set group priority to max
-
getName()
: name of the group
-
getParent()
: parent of the group
-
parentOf()
: check thread group ancestor
-
interrupt()
: interrupt all threads in the group
-
destroy()
: destroy the group and all its subgroups
-
isDestroyed()
: check the group is destroyed
-
isDaemon()
: check group is a daemon
-
setDaemon()
: set the daemon status of the group
-
enumerate()
: copy all active threads in the group and its subgroups in an array
-
list()
: thread group info
Ananda Amatya
9/15/1999