Udostępnij za pośrednictwem


ThreadPoolExecutor.PrestartAllCoreThreads Method

Definition

Starts all core threads, causing them to idly wait for work.

[Android.Runtime.Register("prestartAllCoreThreads", "()I", "GetPrestartAllCoreThreadsHandler")]
public virtual int PrestartAllCoreThreads ();
[<Android.Runtime.Register("prestartAllCoreThreads", "()I", "GetPrestartAllCoreThreadsHandler")>]
abstract member PrestartAllCoreThreads : unit -> int
override this.PrestartAllCoreThreads : unit -> int

Returns

the number of threads started

Attributes

Remarks

Starts all core threads, causing them to idly wait for work. This overrides the default policy of starting core threads only when new tasks are executed.

Java documentation for java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads().

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