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