Language

Thread.Daemon Property

Definition

Tests if this thread is a daemon thread.

public bool Daemon { [Android.Runtime.Register("isDaemon", "()Z", "")] get; [Android.Runtime.Register("setDaemon", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("isDaemon", "()Z", "")>]
[<set: Android.Runtime.Register("setDaemon", "(Z)V", "")>]
member this.Daemon : bool with get, set

Property Value

true if this thread is a daemon thread; false otherwise.

Attributes

Exceptions

  • if this thread has already started.

Remarks

Tests if this thread is a daemon thread.

Setting this property 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. Set this property before the thread is started.

Java documentation for java.lang.Thread.isDaemon().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to