img
. . . . . . .
This returns the name that you gave to the group.
Reference:
Chapter 10.
getParent
public final ThreadGroup getParent()
This returns the parent of this group.
Reference:
Chapter 10.
parentOf
public final boolean parentOf(ThreadGroup g)
This returns true if this is the parent.
Reference:
Chapter 10.
stop
public final void stop() throws SecurityException
This calls stop() on every thread and thread group in this group.
Reference:
Chapter 10.
Comments:
Deprecated in Java 2.
suspend
public final void suspend()
throws SecurityException
This calls suspend() on every thread and thread group in this group.
Reference:
Chapter 10.
Comments:
Deprecated in Java 2.
resume
public final void resume()
throws SecurityException
This calls resume() on every thread and thread group in this group.
Reference:
Chapter 10.
Comments:
Deprecated in Java 2.
destroy
public final void destroy()
throws SecurityException,
IllegalThreadStateException
This removes the group if it is empty. If the thread group has subgroups, destroy() is called on
each of those first. Finally, the newly destroyed thread group is removed from its parent.
Chapter 10.
Reference:
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home