JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
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.
Methods in java.lang with parameters of type ThreadGroup
Modifier and Type
Method
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 [] list)
Copies into the specified array references to every active
subgroup in this thread group and its subgroups.
int
ThreadGroup. enumerate (ThreadGroup [] list,
boolean recurse)
Copies into the specified array references to every active
subgroup in this thread group.
boolean
ThreadGroup. parentOf (ThreadGroup g)
Tests if this thread group is either the thread group
argument or one of its ancestor thread groups.
Constructors in java.lang with parameters of type ThreadGroup
Constructor
Description
Thread (ThreadGroup group,
Runnable target)
Allocates a new Thread
object.
Thread (ThreadGroup group,
Runnable target,
String name)
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 group,
Runnable target,
String name,
long stackSize)
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 group,
Runnable target,
String name,
long stackSize,
boolean inheritThreadLocals)
Allocates a new
Thread
object so that it has
target
as its run object, has the specified
name
as its name,
belongs to the thread group referred to by
group
, has
the specified
stackSize
, and inherits initial values for
inheritable thread-local variables
if
inheritThreadLocals
is
true
.
Thread (ThreadGroup group,
String name)
Allocates a new Thread
object.
ThreadGroup (ThreadGroup parent,
String name)
Creates a new thread group.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.