다음을 통해 공유


ThreadPoolExecutor.PrestartCoreThread Method

Definition

Starts a core thread, causing it to idly wait for work.

[Android.Runtime.Register("prestartCoreThread", "()Z", "GetPrestartCoreThreadHandler")]
public virtual bool PrestartCoreThread ();
[<Android.Runtime.Register("prestartCoreThread", "()Z", "GetPrestartCoreThreadHandler")>]
abstract member PrestartCoreThread : unit -> bool
override this.PrestartCoreThread : unit -> bool

Returns

true if a thread was started

Attributes

Remarks

Starts a core thread, causing it to idly wait for work. This overrides the default policy of starting core threads only when new tasks are executed. This method will return false if all core threads have already been started.

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

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