public final void suspend() { checkAccess();  Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.suspend(); }  Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.suspend(); }
public final synchronized void suspend() { checkAccess(); if (groups == null) return; int i = threads.size(); while (--i >= 0) ((Thread) threads.get(i)).suspend(); i = groups.size(); while (--i >= 0) ((ThreadGroup) groups.get(i)).suspend();
	public final void suspend() {		checkAccess();		Enumeration et = threads.elements();		while (et.hasMoreElements()) {			Thread t = (Thread) et.nextElement();			t.suspend();		}		Enumeration eg = groups.elements();		while (eg.hasMoreElements()) {			ThreadGroup g = (ThreadGroup) eg.nextElement();			g.suspend();		}	}