20.21
java.lang.ThreadGroup
THE PACKAGE JAVA.LANG
20.21.9
public final void suspend() throws SecurityException
First, the
checkAccess
method ( 20.21.4) of this
ThreadGroup
object is called
with no arguments. This may result in a
SecurityException
being thrown (in
the current thread).
Every thread in this thread group or any of its subgroups is suspended. More
precisely, the method
suspend
is called for every
ThreadGroup
and every
Thread
( 20.20.17) that belongs to this
ThreadGroup
.
20.21.10
public final void resume() throws SecurityException
First, the
checkAccess
method ( 20.21.4) of this
ThreadGroup
object is called
with no arguments. This may result in a
SecurityException
being thrown (in
the current thread).
Every thread in this thread group or any of its subgroups is resumed. More
precisely, the method
resume
is called for every
ThreadGroup
and every
Thread
( 20.20.18) that belongs to this
ThreadGroup
.
20.21.11
public final void destroy()
throws SecurityException, IllegalThreadStateException
First, the
checkAccess
method ( 20.21.4) of this
ThreadGroup
object is called
with no arguments. This may result in a
SecurityException
being thrown (in
the current thread).
This thread group is destroyed. If it has already been destroyed, or if any
threads belong to it directly, then an
IllegalThreadStateException
is thrown.
Otherwise, this method is called recursively for every thread group that belongs to
this thread group, and this thread group is removed from its parent thread group.
A thread group that is currently marked as a daemon thread group is destroyed
automatically if both of the following conditions are true:
A thread or thread group has just been removed from it (because the thread
has died or the thread group has been destroyed).
The thread group now contains no more threads or thread groups.
20.21.12
public final int getMaxPriority()
The current maximum priority of this
ThreadGroup
object is returned.
606
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved