<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.ThreadGroup
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Thread.html#_top_">Previous</a>  <a href="java.lang.Throwable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.ThreadGroup
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.ThreadGroup
</pre>
<hr>
<dl>
  <dt> public class <b>ThreadGroup</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
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. 
 <p>
 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.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ThreadGroup(java.lang.String)"><b>ThreadGroup</b></a>(String)
  <dd>  Constructs a new thread group.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ThreadGroup(java.lang.ThreadGroup, java.lang.String)"><b>ThreadGroup</b></a>(ThreadGroup, String)
  <dd>  Creates a new thread group.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#activeCount()"><b>activeCount</b></a>()
  <dd>  Returns an estimate of the number of active threads in this
 thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#activeGroupCount()"><b>activeGroupCount</b></a>()
  <dd>  Returns an estimate of the number of active groups in this
 thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#allowThreadSuspension(boolean)"><b>allowThreadSuspension</b></a>(boolean)
  <dd>  Used by VM to control lowmem implicit suspension.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#checkAccess()"><b>checkAccess</b></a>()
  <dd>  Determines if the currently running thread has permission to 
 modify this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#destroy()"><b>destroy</b></a>()
  <dd>  Destroys this thread group and all of its subgroups.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enumerate(java.lang.Thread[])"><b>enumerate</b></a>(Thread[])
  <dd>  Copies into the specified array every active thread in this 
 thread group and its subgroups.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enumerate(java.lang.Thread[], boolean)"><b>enumerate</b></a>(Thread[], boolean)
  <dd>  Copies into the specified array every active thread in this 
 thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enumerate(java.lang.ThreadGroup[])"><b>enumerate</b></a>(ThreadGroup[])
  <dd>  Copies into the specified array references to every active 
 subgroup in this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enumerate(java.lang.ThreadGroup[], boolean)"><b>enumerate</b></a>(ThreadGroup[], boolean)
  <dd>  Copies into the specified array references to every active 
 subgroup in this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMaxPriority()"><b>getMaxPriority</b></a>()
  <dd>  Returns the maximum priority of this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getName()"><b>getName</b></a>()
  <dd>  Returns the name of this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParent()"><b>getParent</b></a>()
  <dd>  Returns the parent of this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isDaemon()"><b>isDaemon</b></a>()
  <dd>  Tests if this thread group is a daemon thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isDestroyed()"><b>isDestroyed</b></a>()
  <dd>  Tests if this thread group has been destroyed.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#list()"><b>list</b></a>()
  <dd>  Prints information about this thread group to the standard 
 output.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parentOf(java.lang.ThreadGroup)"><b>parentOf</b></a>(ThreadGroup)
  <dd>  Tests if this thread group is either the thread group 
 argument or one of its ancestor thread groups.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#resume()"><b>resume</b></a>()
  <dd>  Resumes all processes in this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDaemon(boolean)"><b>setDaemon</b></a>(boolean)
  <dd>  Changes the daemon status of this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMaxPriority(int)"><b>setMaxPriority</b></a>(int)
  <dd>  Sets the maximum priority of the group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#stop()"><b>stop</b></a>()
  <dd>  Stops all processes in this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#suspend()"><b>suspend</b></a>()
  <dd>  Suspends all processes in this thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a string representation of this Thread group.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#uncaughtException(java.lang.Thread, java.lang.Throwable)"><b>uncaughtException</b></a>(Thread, Throwable)
  <dd>  Called by the Java Virtual Machine when a thread in this 
 thread group stops because of an uncaught exception.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ThreadGroup"></a>
<a name="ThreadGroup(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ThreadGroup</b>
<pre>
 public ThreadGroup(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Constructs a new thread group. The parent of this new group is 
 the thread group of the currently running thread.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the name of the new thread group.
  </dl></dd>
</dl>
<a name="ThreadGroup(java.lang.ThreadGroup, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ThreadGroup</b>
<pre>
 public ThreadGroup(<a href="#_top_">ThreadGroup</a> parent,
                    <a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Creates a new thread group. The parent of this new group is the 
 specified thread group. 
 <p>
 The <code>checkAccess</code> method of the parent thread group is 
 called with no arguments; this may result in a security exception.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> parent - the parent thread group.
    <dd> name - the name of the new thread group.
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the thread group argument is
               <code>null</code>.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread cannot create a
               thread in the specified thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getName"><b>getName</b></a>
<pre>
 public final <a href="java.lang.String.html#_top_">String</a> getName()
</pre>
<dl>
  <dd> Returns the name of this thread group.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the name of this thread group.
  </dl></dd>
</dl>
<a name="getParent()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParent"><b>getParent</b></a>
<pre>
 public final <a href="#_top_">ThreadGroup</a> getParent()
</pre>
<dl>
  <dd> Returns the parent of this thread group.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the parent of this thread group. The top-level thread group
          is the only thread group whose parent is <code>null</code>.
  </dl></dd>
</dl>
<a name="getMaxPriority()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMaxPriority"><b>getMaxPriority</b></a>
<pre>
 public final int getMaxPriority()
</pre>
<dl>
  <dd> Returns the maximum priority of this thread group. Threads that are
 part of this group cannot have a higher priority than the maximum
 priority.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the maximum priority that a thread in this thread group
          can have.
  </dl></dd>
</dl>
<a name="isDaemon()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isDaemon"><b>isDaemon</b></a>
<pre>
 public final boolean isDaemon()
</pre>
<dl>
  <dd> Tests if this thread group is a daemon thread group. A 
 daemon thread group is automatically destroyed when its last 
 thread is stopped or its last thread group is destroyed.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this thread group is a daemon thread group;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="isDestroyed()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isDestroyed"><b>isDestroyed</b></a>
<pre>
 public synchronized boolean isDestroyed()
</pre>
<dl>
  <dd> Tests if this thread group has been destroyed.
<p>
</dl>
<a name="setDaemon(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDaemon"><b>setDaemon</b></a>
<pre>
 public final void setDaemon(boolean daemon)
</pre>
<dl>
  <dd> Changes the daemon status of this thread group.
 <p>
 First, the <code>checkAccess</code> method of this thread group is 
 called with no arguments; this may result in a security exception. 
 <p>
 A daemon thread group is automatically destroyed when its last 
 thread is stopped or its last thread group is destroyed.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> daemon - if <code>true</code>, marks this thread group as
                      a daemon thread group; otherwise, marks this
                      thread group as normal.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread cannot modify
               this thread.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="setMaxPriority(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMaxPriority"><b>setMaxPriority</b></a>
<pre>
 public final void setMaxPriority(int pri)
</pre>
<dl>
  <dd> Sets the maximum priority of the group. 
 <p>
 First, the <code>checkAccess</code> method of this thread group is 
 called with no arguments; this may result in a security exception. 
 <p>
 Threads in the thread group that already have a higher priority 
 are not affected.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> pri - the new priority of the thread group.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread cannot modify
               this thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="parentOf(java.lang.ThreadGroup)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parentOf"><b>parentOf</b></a>
<pre>
 public final boolean parentOf(<a href="#_top_">ThreadGroup</a> g)
</pre>
<dl>
  <dd> Tests if this thread group is either the thread group 
 argument or one of its ancestor thread groups.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> g - a thread group.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if this thread group is the thread group
          argument or one of its ancestor thread groups;
          <code>false</code> otherwise.
  </dl></dd>
</dl>
<a name="checkAccess()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="checkAccess"><b>checkAccess</b></a>
<pre>
 public final void checkAccess()
</pre>
<dl>
  <dd> Determines if the currently running thread has permission to 
 modify this thread group. 
 <p>
 If there is a security manager, its <code>checkAccess</code> method 
 is called with this thread group as its argument. This may result 
 in throwing a <code>SecurityException</code>.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread is not allowed to
               access this thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityManager.html#checkAccess(java.lang.ThreadGroup)">checkAccess</a>
  </dl></dd>
</dl>
<a name="activeCount()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="activeCount"><b>activeCount</b></a>
<pre>
 public int activeCount()
</pre>
<dl>
  <dd> Returns an estimate of the number of active threads in this
 thread group.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the number of active threads in this thread group and in any
          other thread group that has this thread group as an ancestor.
  </dl></dd>
</dl>
<a name="enumerate(java.lang.Thread[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enumerate"><b>enumerate</b></a>
<pre>
 public int enumerate(<a href="java.lang.Thread.html#_top_">Thread</a> list[])
</pre>
<dl>
  <dd> Copies into the specified array every active thread in this 
 thread group and its subgroups. 
 <p>
 An application should use the <code>activeCount</code> method to 
 get an estimate of how big the array should be. If the array is 
 too short to hold all the threads, the extra threads are silently 
 ignored.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> list - an array into which to place the list of threads.
    <dt> <b>Returns:</b>
    <dd> the number of threads put into the array.
    <dt> <b>See Also:</b>
    <dd> <a href="#activeCount()">activeCount</a>
  </dl></dd>
</dl>
<a name="enumerate(java.lang.Thread[], boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enumerate"><b>enumerate</b></a>
<pre>
 public int enumerate(<a href="java.lang.Thread.html#_top_">Thread</a> list[],
                      boolean recurse)
</pre>
<dl>
  <dd> Copies into the specified array every active thread in this 
 thread group. If the <code>recurse</code> flag is 
 <code>true</code>, references to every active thread in this 
 thread's subgroups are also included. If the array is too short to 
 hold all the threads, the extra threads are silently ignored. 
 <p>
 An application should use the <code>activeCount</code> method to 
 get an estimate of how big the array should be.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> list - an array into which to place the list of threads.
    <dd> recurse - a flag indicating whether also to include threads
                    in thread groups that are subgroups of this
                    thread group.
    <dt> <b>Returns:</b>
    <dd> the number of threads placed into the array.
    <dt> <b>See Also:</b>
    <dd> <a href="#activeCount()">activeCount</a>
  </dl></dd>
</dl>
<a name="activeGroupCount()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="activeGroupCount"><b>activeGroupCount</b></a>
<pre>
 public int activeGroupCount()
</pre>
<dl>
  <dd> Returns an estimate of the number of active groups in this
 thread group.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the number of active thread groups with this thread group as
          an ancestor.
  </dl></dd>
</dl>
<a name="enumerate(java.lang.ThreadGroup[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enumerate"><b>enumerate</b></a>
<pre>
 public int enumerate(<a href="#_top_">ThreadGroup</a> list[])
</pre>
<dl>
  <dd> Copies into the specified array references to every active 
 subgroup in this thread group. 
 <p>
 An application should use the <code>activeGroupCount</code> 
 method to get an estimate of how big the array should be. If the 
 array is too short to hold all the thread groups, the extra thread 
 groups are silently ignored.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> list - an array into which to place the list of thread groups.
    <dt> <b>Returns:</b>
    <dd> the number of thread groups put into the array.
    <dt> <b>See Also:</b>
    <dd> <a href="#activeGroupCount()">activeGroupCount</a>
  </dl></dd>
</dl>
<a name="enumerate(java.lang.ThreadGroup[], boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enumerate"><b>enumerate</b></a>
<pre>
 public int enumerate(<a href="#_top_">ThreadGroup</a> list[],
                      boolean recurse)
</pre>
<dl>
  <dd> Copies into the specified array references to every active 
 subgroup in this thread group. If the <code>recurse</code> flag is 
 <code>true</code>, references to all active subgroups of the 
 subgroups and so forth are also included. 
 <p>
 An application should use the <code>activeGroupCount</code> 
 method to get an estimate of how big the array should be.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> list - an array into which to place the list of threads.
    <dd> recurse - a flag indicating whether to recursively enumerate
                    all included thread groups.
    <dt> <b>Returns:</b>
    <dd> the number of thread groups put into the array.
    <dt> <b>See Also:</b>
    <dd> <a href="#activeGroupCount()">activeGroupCount</a>
  </dl></dd>
</dl>
<a name="stop()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="stop"><b>stop</b></a>
<pre>
 public final void stop()
</pre>
<dl>
  <dd> Stops all processes in this thread group. 
 <p>
 First, the <code>checkAccess</code> method of this thread group is 
 called with no arguments; this may result in a security exception. 
 <p>
 This method then calls the <code>stop</code> method on all the 
 threads in this thread group and in all of its subgroups.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread is not allowed
               to access this thread group or any of the threads in
               the thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="java.lang.Thread.html#stop()">stop</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="suspend()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="suspend"><b>suspend</b></a>
<pre>
 public final void suspend()
</pre>
<dl>
  <dd> Suspends all processes in this thread group. 
 <p>
 First, the <code>checkAccess</code> method of this thread group is 
 called with no arguments; this may result in a security exception. 
 <p>
 This method then calls the <code>suspend</code> method on all the 
 threads in this thread group and in all of its subgroups.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread is not allowed
               to access this thread group or any of the threads in
               the thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="java.lang.Thread.html#suspend()">suspend</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="resume()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="resume"><b>resume</b></a>
<pre>
 public final void resume()
</pre>
<dl>
  <dd> Resumes all processes in this thread group. 
 <p>
 First, the <code>checkAccess</code> method of this thread group is 
 called with no arguments; this may result in a security exception. 
 <p>
 This method then calls the <code>resume</code> method on all the 
 threads in this thread group and in all of its sub groups.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread is not allowed to
               access this thread group or any of the threads in the
               thread group.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>, <a href="java.lang.Thread.html#resume()">resume</a>, <a href="#checkAccess()">checkAccess</a>
  </dl></dd>
</dl>
<a name="destroy()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="destroy"><b>destroy</b></a>
<pre>
 public final void destroy()
</pre>
<dl>
  <dd> Destroys this thread group and all of its subgroups. This thread 
 group must be empty, indicating that all threads that had been in 
 this thread group have since stopped.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalThreadStateException.html#_top_">IllegalThreadStateException</a>
    <dd> if the thread group is not
               empty or if the thread group has already been destroyed.
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> if the current thread cannot modify this
               thread group.
  </dl></dd>
</dl>
<a name="list()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="list"><b>list</b></a>
<pre>
 public void list()
</pre>
<dl>
  <dd> Prints information about this thread group to the standard 
 output. This method is useful only for debugging.
<p>
</dl>
<a name="uncaughtException(java.lang.Thread, java.lang.Throwable)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="uncaughtException"><b>uncaughtException</b></a>
<pre>
 public void uncaughtException(<a href="java.lang.Thread.html#_top_">Thread</a> t,
                               <a href="java.lang.Throwable.html#_top_">Throwable</a> e)
</pre>
<dl>
  <dd> Called by the Java Virtual Machine when a thread in this 
 thread group stops because of an uncaught exception. 
 <p>
 The <code>uncaughtException</code> method of 
 <code>ThreadGroup</code> does the following: 
 <ul>
 <li>If this thread group has a parent thread group, the
     <code>uncaughtException</code> method of that parent is called
     with the same two arguments. 
 <li>Otherwise, this method determines if the <code>Throwable</code>
     argument is an instance of <code>ThreadDeath</code>. If so, nothing
     special is done. Otherwise, the <code>Throwable</code>'s
     <code>printStackTrace</code> method is called to print a stack
     backtrace to the standard error stream.
 </ul>
 <p>
 Applications can override this method in subclasses of 
 <code>ThreadGroup</code> to provide alternative handling of 
 uncaught exceptions.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> t - the thread that is about to exit.
    <dd> e - the uncaught exception.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#err">err</a>, <a href="java.lang.ThreadDeath.html#_top_">ThreadDeath</a>, <a href="java.lang.Throwable.html#printStackTrace(java.io.PrintStream)">printStackTrace</a>
  </dl></dd>
</dl>
<a name="allowThreadSuspension(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="allowThreadSuspension"><b>allowThreadSuspension</b></a>
<pre>
 public boolean allowThreadSuspension(boolean b)
</pre>
<dl>
  <dd> Used by VM to control lowmem implicit suspension.
<p>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a string representation of this Thread group.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation of this thread group.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Thread.html#_top_">Previous</a>  <a href="java.lang.Throwable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
