Uses of Class
java.lang.ThreadGroup

Packages that use ThreadGroup
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
  • Uses of ThreadGroup in java.lang

    Methods in java.lang that return ThreadGroup
    Modifier and Type
    Method
    Description
    ThreadGroup.getParent()
    Answers the receiver's parent ThreadGroup.
    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.
    Answers the ThreadGroup to which the receiver belongs
    Methods in java.lang with parameters of type ThreadGroup
    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 a SecurityException if the calling thread is not allowed to modify the thread group argument.
    int
    ThreadGroup.enumerate(ThreadGroup[] groups)
    Copies an array with all ThreadGroups which are children of the receiver (directly or indirectly) into the array groups passed as parameters.
    int
    ThreadGroup.enumerate(ThreadGroup[] groups, boolean recurse)
    Copies an array with all ThreadGroups which are children of the receiver into the array groups passed as parameter.
    final boolean
    ThreadGroup.parentOf(ThreadGroup g)
    Answers true if the receiver is a direct or indirect parent group of ThreadGroup g, false otherwise.
    Constructors in java.lang with parameters of type ThreadGroup
    Modifier
    Constructor
    Description
     
    Thread(ThreadGroup group, Runnable runnable)
    Constructs a new Thread with a runnable object and a newly generated name.
     
    Thread(ThreadGroup group, Runnable runnable, String threadName)
    Constructs a new Thread with a runnable object, the given name and belonging to the ThreadGroup passed as parameter.
     
    Thread(ThreadGroup group, Runnable runnable, String threadName, long stack)
    Constructs a new Thread with a runnable object, the given name and belonging to the ThreadGroup passed as parameter.
     
    Thread(ThreadGroup group, Runnable runnable, String threadName, long stack, boolean inheritThreadLocals)
    Constructs a new Thread with a runnable object, the given name, the thread stack size, the flag to inherit initial values for inheritable thread-local variables and belonging to the ThreadGroup passed as parameter.
     
    Thread(ThreadGroup group, String threadName)
    Constructs a new Thread with no runnable object, the given name and belonging to the ThreadGroup passed as parameter.
     
    Constructs a new ThreadGroup with the name provided, as child of the ThreadGroup parent