public class ThreadUtil extends Object
Constructor and Description |
---|
ThreadUtil() |
Modifier and Type | Method and 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()
Copyright © 1997–2019 NIH. All rights reserved.