Uses of Class
java.lang.ThreadGroup
Packages that useThreadGroup Package Description java.lang Provides classes that are fundamental to the design of the Java programming language.Uses ofThreadGroup injava.lang
Methods injava.lang that returnThreadGroup Modifier and Type Method Description ThreadGroupThreadGroup. getParent()Returns the parent of this thread group.ThreadGroupSecurityManager. getThreadGroup()Returns the thread group into which to instantiate any new thread being created at the time this is being called.ThreadGroupThread. getThreadGroup()Returns the thread group to which this thread belongs.Methods injava.lang with parameters of typeThreadGroup Modifier and Type Method Description voidSecurityManager. checkAccess(ThreadGroup g)Throws aSecurityExceptionif the calling thread is not allowed to modify the thread group argument.intThreadGroup. enumerate(ThreadGroup[] list)Copies into the specified array references to every active subgroup in this thread group and its subgroups.intThreadGroup. enumerate(ThreadGroup[] list, boolean recurse)Copies into the specified array references to every active subgroup in this thread group.booleanThreadGroup. parentOf(ThreadGroup g)Tests if this thread group is either the thread group argument or one of its ancestor thread groups.Constructors injava.lang with parameters of typeThreadGroup Constructor Description Thread(ThreadGroup group,Runnable target)Allocates a newThreadobject.Thread(ThreadGroup group,Runnable target,String name)Allocates a newThreadobject so that it hastargetas its run object, has the specifiednameas its name, and belongs to the thread group referred to bygroup.Thread(ThreadGroup group,Runnable target,String name, long stackSize)Allocates a newThreadobject so that it hastargetas its run object, has the specifiednameas its name, and belongs to the thread group referred to bygroup, and has the specifiedstack size.Thread(ThreadGroup group,Runnable target,String name, long stackSize, boolean inheritThreadLocals)Allocates a newThreadobject so that it hastargetas its run object, has the specifiednameas its name, belongs to the thread group referred to bygroup, has the specifiedstackSize, and inherits initial values forinheritable thread-local variables ifinheritThreadLocalsistrue.Thread(ThreadGroup group,String name)Allocates a newThreadobject.ThreadGroup(ThreadGroup parent,String name)Creates a new thread group.