Share via


AsyncTask.ThreadPoolExecutor Property

Definition

An Executor that can be used to execute tasks in parallel.

[Android.Runtime.Register("THREAD_POOL_EXECUTOR")]
public static Java.Util.Concurrent.IExecutor? ThreadPoolExecutor { get; }
[<Android.Runtime.Register("THREAD_POOL_EXECUTOR")>]
static member ThreadPoolExecutor : Java.Util.Concurrent.IExecutor

Property Value

Attributes

Remarks

An Executor that can be used to execute tasks in parallel.

This member is deprecated. Using a single thread pool for a general purpose results in suboptimal behavior for different tasks. Small, CPU-bound tasks benefit from a bounded pool and queueing, and long-running blocking tasks, such as network operations, benefit from many threads. Use or create an Executor configured for your use case.

Java documentation for android.os.AsyncTask.THREAD_POOL_EXECUTOR.

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