Uses of Class
java.lang.ThreadGroup
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
-
Uses of ThreadGroup in java.lang
Modifier and TypeMethodDescriptionThreadGroup.getParent()
Returns the parent of this thread group.SecurityManager.getThreadGroup()
Returns the thread group into which to instantiate any new thread being created at the time this is being called.Thread.getThreadGroup()
Returns the thread group to which this thread belongs.Modifier and TypeMethodDescriptionvoid
SecurityManager.checkAccess(ThreadGroup g)
Throws aSecurityException
if the calling thread is not allowed to modify the thread group argument.int
ThreadGroup.enumerate(ThreadGroup[] list)
Copies into the specified array references to every active subgroup in this thread group and its subgroups.int
ThreadGroup.enumerate(ThreadGroup[] list, boolean recurse)
Copies into the specified array references to every active subgroup in this thread group.boolean
ThreadGroup.parentOf(ThreadGroup g)
Tests if this thread group is either the thread group argument or one of its ancestor thread groups.ModifierConstructorDescriptionThread(ThreadGroup group, Runnable target)
Allocates a newThread
object.Thread(ThreadGroup group, Runnable target, String name)
Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, and belongs to the thread group referred to bygroup
.Thread(ThreadGroup group, Runnable target, String name, long stackSize)
Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, and belongs to the thread group referred to bygroup
, and has the specified stack size.Thread(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals)
Allocates a newThread
object so that it hastarget
as its run object, has the specifiedname
as its name, belongs to the thread group referred to bygroup
, has the specifiedstackSize
, and inherits initial values for inheritable thread-local variables ifinheritThreadLocals
istrue
.Thread(ThreadGroup group, String name)
Allocates a newThread
object.ThreadGroup(ThreadGroup parent, String name)
Creates a new thread group.