Class ThreadUtil

java.lang.Object
alpine.common.util.ThreadUtil

public final class ThreadUtil extends Object
A collection of useful Thread utilities.
Since:
1.0.0
Author:
Steve Springett
  • 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