it.pixel.util.threads
Class TestThreadPool

java.lang.Object
  |
  +--it.pixel.util.threads.TestThreadPool

Deprecated. This class isn't of any use for your program. Please write your own main method instead.

public class TestThreadPool
extends java.lang.Object

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

ncalls

private int ncalls
Deprecated. 
The number of times a thread gets called


totms

private long totms
Deprecated. 
The sum of the milliseconds between the call of execute and the thread completion for all the threads

Constructor Detail

TestThreadPool

public TestThreadPool()
Deprecated. 
Method Detail

testExecute

private void testExecute()
                  throws java.lang.Exception
Deprecated. 
java.lang.Exception

timetest

private void timetest(ThreadPool tp,
                      int runs)
Deprecated. 

main

public static void main(java.lang.String[] args)
Deprecated. 
The main method. Don't bother running this until you know what it does. Don't bother understanding what it does until you are a newbie seeking for sample code. Don't bother seeking for sample code until you haven't read all the javadocs. Don't bother reading the javadocs until you haven't run this once. And please, don't loop, you are human after all!

Parameters:
args - Well, you should know what it is. No args required nor optional.