Share via


ForkJoinPool.IsQuiescent Property

Definition

Returns true if all worker threads are currently idle.

public virtual bool IsQuiescent { [Android.Runtime.Register("isQuiescent", "()Z", "GetIsQuiescentHandler")] get; }
[<get: Android.Runtime.Register("isQuiescent", "()Z", "GetIsQuiescentHandler")>]
member this.IsQuiescent : bool

Property Value

true if all threads are currently idle

Attributes

Remarks

Returns true if all worker threads are currently idle. An idle worker is one that cannot obtain a task to execute because none are available to steal from other threads, and there are no pending submissions to the pool. This method is conservative; it might not return true immediately upon idleness of all threads, but will eventually become true if threads remain inactive.

Java documentation for java.util.concurrent.ForkJoinPool.isQuiescent().

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