public class ThreadDriver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
SLEEP_TIME
Number of millis we'll sleep between various calls; this allows more processor time to be spent on the actual threads.
|
Constructor and Description |
---|
ThreadDriver() |
Modifier and Type | Method and Description |
---|---|
static void |
runThreads(java.lang.Thread[] sourceThreads,
int threadCount)
Runs all the sourceThreads, threadCount at a time.
|
private static void |
sleep()
I know, it's silly, but it makes the code easier to read not having all those stupid try-catch blocks.
|
protected static final int SLEEP_TIME
public static void runThreads(java.lang.Thread[] sourceThreads, int threadCount)
private static void sleep()