resolve_threshold


Description:

public abstract int64 resolve_threshold (int64 elements, int threads)

Calculates the proper threshold.

Parameters:

elements

an estimate of the number of elements. it is negative if infinite or unknown.

threads

the number of threads (always >= 1)

Returns:

threshold (must be >= 1)

See also:

ForkJoinTask.threshold