Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method and 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 belongs
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkAccess(ThreadGroup g)
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. |
boolean |
ThreadGroup.parentOf(ThreadGroup g)
Answers true if the receiver is a direct or indirect parent group of
ThreadGroup
g , false otherwise. |
Constructor and 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,
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 ThreadGroup
parent |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.