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 ThreadGroupModifier and TypeMethodDescriptionfinal ThreadGroup
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.final ThreadGroup
Thread.getThreadGroup()
Answers the ThreadGroup to which the receiver belongsMethods in java.lang with parameters of type ThreadGroupModifier and TypeMethodDescriptionvoid
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[] groups) Copies an array with all ThreadGroups which are children of the receiver (directly or indirectly) into the arraygroups
passed as parameters.int
ThreadGroup.enumerate
(ThreadGroup[] groups, boolean recurse) Copies an array with all ThreadGroups which are children of the receiver into the arraygroups
passed as parameter.final boolean
ThreadGroup.parentOf
(ThreadGroup g) Answers true if the receiver is a direct or indirect parent group of ThreadGroupg
, false otherwise.Constructors in java.lang with parameters of type ThreadGroupModifierConstructorDescriptionThread
(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.ThreadGroup
(ThreadGroup parent, String name) Constructs a new ThreadGroup with the name provided, as child of the ThreadGroupparent