Executors.DefaultThreadFactory Method

Definition

Returns a default thread factory used to create new threads.

[Android.Runtime.Register("defaultThreadFactory", "()Ljava/util/concurrent/ThreadFactory;", "")]
public static Java.Util.Concurrent.IThreadFactory? DefaultThreadFactory ();
[<Android.Runtime.Register("defaultThreadFactory", "()Ljava/util/concurrent/ThreadFactory;", "")>]
static member DefaultThreadFactory : unit -> Java.Util.Concurrent.IThreadFactory

Returns

a thread factory

Attributes

Remarks

Returns a default thread factory used to create new threads. This factory creates all new threads used by an Executor in the same ThreadGroup. Each new thread is created as a non-daemon thread with priority set to the smaller of Thread.NORM_PRIORITY and the maximum priority permitted in the thread group. New threads have names accessible via Thread#getName of <em>pool-N-thread-M</em>, where <em>N</em> is the sequence number of this factory, and <em>M</em> is the sequence number of the thread created by this factory.

Java documentation for java.util.concurrent.Executors.defaultThreadFactory().

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