resolve_threshold
Description:
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) |