Thread.setDaemon

Thread.setDaemon

Class Overview | Class Members | This Package | All Packages

Syntax
public final void setDaemon( boolean on )
Parameters
on
if true, marks this thread as a daemon thread.
Description
Marks this thread as either a daemon thread or a user thread. The Java Virtual Machine exits when the only threads running are all daemon threads.

This method must be called before the thread is started.

Exceptions
IllegalThreadStateException if this thread is active.
See Also
isDaemon