| 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()
Returns the parent of this thread group.
|
ThreadGroup |
Thread.getThreadGroup()
Returns the thread group to which this thread belongs.
|
ThreadGroup |
SecurityManager.getThreadGroup()
Returns the thread group into which to instantiate any new thread being created at the time this is being called.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SecurityManager.checkAccess(ThreadGroup
Throws a
SecurityException if the calling thread is not allowed to modify the thread group argument.
|
int |
ThreadGroup.enumerate(ThreadGroup
Copies into the specified array references to every active subgroup in this thread group and its subgroups.
|
int |
ThreadGroup.enumerate(ThreadGroup
Copies into the specified array references to every active subgroup in this thread group.
|
boolean |
ThreadGroup.parentOf(ThreadGroup
Tests if this thread group is either the thread group argument or one of its ancestor thread groups.
|
| Constructor and Description | |
|---|---|
Thread(ThreadGroup
Allocates a new
Thread object.
|
|
Thread(ThreadGroup
Allocates a new
Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group referred to by
group.
|
|
Thread(ThreadGroup
Allocates a new
Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group referred to by
group, and has the specified
stack size.
|
|
Thread(ThreadGroup
Allocates a new
Thread object.
|
|
ThreadGroup(ThreadGroup
Creates a new thread group.
|