Package alpine.util

Class ThreadUtil


  • public final class ThreadUtil
    extends Object
    A collection of useful Thread utilities.
    Since:
    1.0.0
    Author:
    Steve Springett
    • Method Detail

      • 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