Classe 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.

	package java.lang;

	import java.io.PrintStream;
	import sun.misc.VM;

		(>JDK1.0)public
	class ThreadGroup {

	    // Constructeurs publics
		(>JDK1.0)    public ThreadGroup(String name);
		(>JDK1.0)    public ThreadGroup(ThreadGroup parent, String name);

	    // Méthodes d'instance publiques
		(>JDK1.0)    public int activeCount();
		(>JDK1.0)    public int activeGroupCount();
		(>JDK1.1)    public boolean allowThreadSuspension(boolean b);
		(>JDK1.0)    public final void checkAccess();
		(>JDK1.0)    public final void destroy();
		(>JDK1.0)    public int enumerate(Thread list[]);
		(>JDK1.0)    public int enumerate(Thread list[], boolean recurse);
		(>JDK1.0)    public int enumerate(ThreadGroup list[]);
		(>JDK1.0)    public int enumerate(ThreadGroup list[], boolean recurse);
		(>JDK1.0)    public final int getMaxPriority();
		(>JDK1.0)    public final String getName();
		(>JDK1.0)    public final ThreadGroup getParent();
		(>JDK1.0)    public final boolean isDaemon();
		(>JDK1.1)    public synchronized boolean isDestroyed();
		(>JDK1.0)    public void list();
		(>JDK1.0)    public final boolean parentOf(ThreadGroup g);
		(>JDK1.0)    public final void resume();
		(>JDK1.0)    public final void setDaemon(boolean daemon);
		(>JDK1.0)    public final void setMaxPriority(int pri);
		(>JDK1.0)    public final void stop();
		(>JDK1.0)    public final void suspend();
		(>JDK1.0)    public String toString();
		(>JDK1.0)    public void uncaughtException(Thread t, Throwable e);
	}

Christophe Merlet
redfox@redfoxcenter.org
©Tous droits réservés
11 septembre 1998