This method of the ThreadPermission Class sets a ThreadGroup that defines the domain in which the permission object allows manipulation of Thread or ThreadGroup objects.
public void setAllowedThreadGroup(ThreadGroup tg);
tg | The thread group that can be manipulated. |
Classes that possess this permission can manipulate any threads within this ThreadGroup or within any child ThreadGroup of this ThreadGroup. The permission also allows the manipulation of the specified ThreadGroup or any of its children.