Package alpine.common.util
Class ThreadUtil
java.lang.Object
alpine.common.util.ThreadUtil
A collection of useful Thread utilities.
- Since:
- 1.0.0
- Author:
- Steve Springett
-
Method Summary
Modifier and TypeMethodDescriptionstatic intCalculates the number of worker threads to use.
-
Method Details
-
determineNumberOfWorkerThreads
public static int determineNumberOfWorkerThreads()Calculates the number of worker threads to use. Minimum return value is 1.- Returns:
- the number of worker threads
- Since:
- 1.0.0
-