ThreadGroup.setDaemon
Class Overview | Class Members |
This Package |
All Packages
public final void setDaemon( boolean daemon )
Parameters
- daemon
- if true, marks this thread group as
a daemon thread group; otherwise, marks this
thread group as normal.
Description
Changes the daemon status of this thread group.
First, the checkAccess method of this thread group is
called with no arguments; this may result in a security exception.
A daemon thread group is automatically destroyed when its last
thread is stopped or its last thread group is destroyed.
Exceptions
SecurityException
if the current thread cannot modify
this thread.
See Also
SecurityException, checkAccess