Share via


ForkJoinPool.StealCount Property

Definition

Returns an estimate of the total number of completed tasks that were executed by a thread other than their submitter.

public virtual long StealCount { [Android.Runtime.Register("getStealCount", "()J", "GetGetStealCountHandler")] get; }
[<get: Android.Runtime.Register("getStealCount", "()J", "GetGetStealCountHandler")>]
member this.StealCount : int64

Property Value

the number of steals

Attributes

Remarks

Returns an estimate of the total number of completed tasks that were executed by a thread other than their submitter. The reported value underestimates the actual total number of steals when the pool is not quiescent. This value may be useful for monitoring and tuning fork/join programs: in general, steal counts should be high enough to keep threads busy, but low enough to avoid overhead and contention across threads.

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

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