java.lang.Object
|
+--java.lang.ThreadGroup
A thread group represents a set of threads. In addition, a thread group can also include other thread groups. The thread groups form a tree in which every thread group except the initial thread group has a parent.
A thread is allowed to access information about its own thread group, but not to access information about its thread group's parent thread group or any other thread groups.
| Constructor Summary | |
ThreadGroup
copy-> new ThreadGroup( )copy-> <ThreadGroup var> = new ThreadGroup(<String name>);
|
|
ThreadGroup
copy-> new ThreadGroup(, )copy-> <ThreadGroup var> = new ThreadGroup(<ThreadGroup parent>, <String name>);
|
|
| Method Summary | |
int |
activeCount()
copy-> .activeCount()copy-> <int var>=<ThreadGroup>.activeCount();
|
int |
activeGroupCount()
copy-> .activeGroupCount()copy-> <int var>=<ThreadGroup>.activeGroupCount();
|
boolean |
allowThreadSuspension(boolean b)
copy-> .allowThreadSuspension( )copy-> <boolean var>=<ThreadGroup>.allowThreadSuspension(<boolean b>);
|
void |
checkAccess()
copy-> .checkAccess()copy-> <ThreadGroup>.checkAccess();
|
void |
destroy()
copy-> .destroy()copy-> <ThreadGroup>.destroy();
|
int |
enumerate(Thread[] list)
copy-> .enumerate( )copy-> <int var>=<ThreadGroup>.enumerate(<Thread[] list>);
|
int |
enumerate(Thread[] list,
boolean recurse)
copy-> .enumerate(, )copy-> <int var>=<ThreadGroup>.enumerate(<Thread[] list>, <boolean recurse>);
|
int |
enumerate(ThreadGroup[] list)
copy-> .enumerate( )copy-> <int var>=<ThreadGroup>.enumerate(<ThreadGroup[] list>);
|
int |
enumerate(ThreadGroup[] list,
boolean recurse)
copy-> .enumerate(, )copy-> <int var>=<ThreadGroup>.enumerate(<ThreadGroup[] list>, <boolean recurse>);
|
int |
getMaxPriority()
copy-> .getMaxPriority()copy-> <int var>=<ThreadGroup>.getMaxPriority();
|
String |
getName()
copy-> .getName()copy-> <String var>=<ThreadGroup>.getName();
|
ThreadGroup |
getParent()
copy-> .getParent()copy-> <ThreadGroup var>=<ThreadGroup>.getParent();
|
void |
interrupt()
copy-> .interrupt()copy-> <ThreadGroup>.interrupt();
|
boolean |
isDaemon()
copy-> .isDaemon()copy-> <boolean var>=<ThreadGroup>.isDaemon();
|
boolean |
isDestroyed()
copy-> .isDestroyed()copy-> <boolean var>=<ThreadGroup>.isDestroyed();
|
void |
list()
copy-> .list()copy-> <ThreadGroup>.list();
|
boolean |
parentOf(ThreadGroup g)
copy-> .parentOf( )copy-> <boolean var>=<ThreadGroup>.parentOf(<ThreadGroup g>);
|
void |
resume()
copy-> .resume()copy-> <ThreadGroup>.resume();
|
void |
setDaemon(boolean daemon)
copy-> .setDaemon( )copy-> <ThreadGroup>.setDaemon(<boolean daemon>);
|
void |
setMaxPriority(int pri)
copy-> .setMaxPriority( )copy-> <ThreadGroup>.setMaxPriority(<int pri>);
|
void |
stop()
copy-> .stop()copy-> <ThreadGroup>.stop();
|
void |
suspend()
copy-> .suspend()copy-> <ThreadGroup>.suspend();
|
String |
toString()
copy-> .toString()copy-> <String var>=<ThreadGroup>.toString(); |
void |
uncaughtException(Thread t,
Throwable e)
copy-> .uncaughtException(, )copy-> <ThreadGroup>.uncaughtException(<Thread t>, <Throwable e>);
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |