|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--it.pixel.util.threads.TestThreadPool
This is a test class used for benchmarks. You don't want to use this class in your programs. You may like to edit this class sources to play with it and run your own benchmarks. You may want to take a look at this class sources to understand how to use a ThreadPool.
Field Summary | |
private int |
ncalls
Deprecated. The number of times a thread gets called |
private long |
totms
Deprecated. The sum of the milliseconds between the call of execute and the thread completion for all the threads |
Constructor Summary | |
TestThreadPool()
Deprecated. |
Method Summary | |
static void |
main(java.lang.String[] args)
Deprecated. The main method. |
private void |
testExecute()
Deprecated. |
private void |
timetest(ThreadPool tp,
int runs)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int ncalls
private long totms
Constructor Detail |
public TestThreadPool()
Method Detail |
private void testExecute() throws java.lang.Exception
java.lang.Exception
private void timetest(ThreadPool tp, int runs)
public static void main(java.lang.String[] args)
args
- Well, you should know what it is. No args required nor optional.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |