public class ThreadUtil
extends java.lang.Object
Constructor and Description |
---|
ThreadUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Thread[] |
createThreadArray() |
static java.lang.Thread[] |
createThreadArray(int nb) |
static int |
getNbCpus() |
static void |
startAndJoin(java.lang.Thread[] threads)
Start all given threads and wait on each of them until all are done.
|
public static void startAndJoin(java.lang.Thread[] threads)
threads
- public static java.lang.Thread[] createThreadArray(int nb)
nb
- public static java.lang.Thread[] createThreadArray()
public static int getNbCpus()