Uses of Class
java.lang.ThreadGroup
-
Packages that use ThreadGroup Package Description java.lang 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
ThreadGroup. getParent()
Answers the receiver's parent ThreadGroup.ThreadGroup
SecurityManager. getThreadGroup()
Returns the thread group into which to instantiate any new thread being created at the time this is being called.ThreadGroup
Thread. getThreadGroup()
Answers the ThreadGroup to which the receiver belongsMethods in java.lang with parameters of type ThreadGroup Modifier and Type Method Description void
SecurityManager. checkAccess(ThreadGroup g)
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.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 ThreadGroup 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.ThreadGroup(ThreadGroup parent, String name)
Constructs a new ThreadGroup with the name provided, as child of the ThreadGroupparent
-