public final class ThreadPoolUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
ioIntesivePoolSize()
Each tasks blocks 90% of the time, and works only 10% of its
lifetime.
|
static int |
poolSize(double blockingCoefficient)
Number of threads = Number of Available Cores / (1 - Blocking
Coefficient) where the blocking coefficient is between 0 and 1.
|
public static int ioIntesivePoolSize()
public static int poolSize(double blockingCoefficient)
blockingCoefficient - Copyright © 2016 Dexecutor. All rights reserved.