Uses of Class
java.lang.ThreadGroup
Packages that useThreadGroup
Package
Description
Provides classes that are fundamental to the design of the Javaprogramming language.
Utility classes commonly useful in concurrent programming.
Uses ofThreadGroup injava.lang
Methods injava.lang that returnThreadGroupModifier and TypeMethodDescriptionfinalThreadGroupThreadGroup.getParent()Returns the parent of this thread group.SecurityManager.getThreadGroup()Deprecated, for removal: This API element is subject to removal in a future version.Returns the current Thread'sThreadGroup.finalThreadGroupThread.getThreadGroup()Returns the thread's thread group ornullif the thread hasterminated.Methods injava.lang with parameters of typeThreadGroupModifier and TypeMethodDescriptionvoidSecurityManager.checkAccess(ThreadGroup g) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsSecurityException.intThreadGroup.enumerate(ThreadGroup[] list) Copies into the specified array references to every subgroup in thisthread group and its subgroups.intThreadGroup.enumerate(ThreadGroup[] list, boolean recurse) Copies into the specified array references to every subgroup in thisthread group.Thread.Builder.OfPlatform.group(ThreadGroup group) Sets the thread group.final booleanThreadGroup.parentOf(ThreadGroup g) Tests if this thread group is either the thread groupargument or one of its ancestor thread groups.Constructors injava.lang with parameters of typeThreadGroupModifierConstructorDescriptionThread(ThreadGroup group,Runnable task) Initializes a new platformThread.Thread(ThreadGroup group,Runnable task,String name) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name,and belongs to the thread group referred to bygroup.Thread(ThreadGroup group,Runnable task,String name, long stackSize) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name,and belongs to the thread group referred to bygroup, and hasthe specifiedstack size.Thread(ThreadGroup group,Runnable task,String name, long stackSize, boolean inheritInheritableThreadLocals) Initializes a new platformThreadso that it hastaskas its run object, has the specifiednameas its name,belongs to the thread group referred to bygroup, hasthe specifiedstackSize, and inherits initial values forinheritable thread-local variablesifinheritThreadLocalsistrue.Thread(ThreadGroup group,String name) Initializes a new platformThread.ThreadGroup(ThreadGroup parent,String name) Creates a new thread group.Uses ofThreadGroup injava.util.concurrent
Constructors injava.util.concurrent with parameters of typeThreadGroupModifierConstructorDescriptionprotectedForkJoinWorkerThread(ThreadGroup group,ForkJoinPool pool, boolean preserveThreadLocals) Creates a ForkJoinWorkerThread operating in the given thread group andpool, and with the given policy for preserving ThreadLocals.