ThreadGroup.ThreadGroup
Class Overview | Class Members |
This Package |
All Packages
public ThreadGroup( String name )
Parameters
- name
- the name of the new thread group.
Description
Constructs a new thread group. The parent of this new group is
the thread group of the currently running thread.
public ThreadGroup( ThreadGroup parent,
String name )
Parameters
- parent
- the parent thread group.
- name
- the name of the new thread group.
Description
Creates a new thread group. The parent of this new group is the
specified thread group.
The checkAccess method of the parent thread group is
called with no arguments; this may result in a security exception.
Exceptions
NullPointerException
if the thread group argument is
null.
Exceptions
SecurityException
if the current thread cannot create a
thread in the specified thread group.
See Also
SecurityException, checkAccess