Creating a Thread Group
Home ] Up ] The Default Thread Group ] [ Creating a Thread Group ] Thread Group Methods ] Thread Group Tree Navigation ] An Example ]

 

 

You can create a ThreadGroup (assuming that the security manager allows you to) by using a ThreadGroup constructor:

public ThreadGroup(ThreadGroup parent, String name) Creates a new thread group. The parent of this new group is the specified thread group.
public ThreadGroup(String name) Constructs a new thread group. The parent of this new group is the thread group of the currently running thread.

Once the ThreadGroup has been constructed, it is empty -- that is, it contains no threads, nor thread groups.

 
The page was last updated February 19, 2008