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.
java.util.concurrent
Utility classes commonly useful in concurrent programming.
  • Uses ofThreadGroup injava.lang

    Methods injava.lang that returnThreadGroup
    Modifier and Type
    Method
    Description
    ThreadGroup.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 thread group into which to instantiate any new thread being created at the time this is being called.
    Returns the thread's thread group ornull if the thread has terminated.
    Methods injava.lang with parameters of typeThreadGroup
    Modifier and Type
    Method
    Description
    void
    SecurityManager.checkAccess(ThreadGroup g)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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 subgroup in this thread group and its subgroups.
    int
    ThreadGroup.enumerate(ThreadGroup[] list, boolean recurse)
    Copies into the specified array references to every subgroup in this thread group.
    Thread.Builder.OfPlatform.group(ThreadGroup group)
    Sets the thread group.
    final boolean
    ThreadGroup.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
    Modifier
    Constructor
    Description
     
    Initializes a new platformThread.
     
    Thread(ThreadGroup group,Runnable task,String name)
    Initializes a new platformThread so that it hastask as its run object, has the specifiedname as its name, and belongs to the thread group referred to bygroup.
     
    Thread(ThreadGroup group,Runnable task,String name, long stackSize)
    Initializes a new platformThread so that it hastask as its run object, has the specifiedname as its name, and belongs to the thread group referred to bygroup, and has the specifiedstack size.
     
    Thread(ThreadGroup group,Runnable task,String name, long stackSize, boolean inheritInheritableThreadLocals)
    Initializes a new platformThread so that it hastask 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 forinheritable thread-local variables ifinheritThreadLocals istrue.
     
    Thread(ThreadGroup group,String name)
    Initializes a new platformThread.
     
    Creates a new thread group.
  • Uses ofThreadGroup injava.util.concurrent

    Constructors injava.util.concurrent with parameters of typeThreadGroup
    Modifier
    Constructor
    Description
    protected
    ForkJoinWorkerThread(ThreadGroup group,ForkJoinPool pool, boolean preserveThreadLocals)
    Creates a ForkJoinWorkerThread operating in the given thread group and pool, and with the given policy for preserving ThreadLocals.