de.ls5.jlearn.util
Class ThreadPool

java.lang.Object
  extended by de.ls5.jlearn.util.ThreadPool

public class ThreadPool
extends Object

Author:
merten

Constructor Summary
ThreadPool()
           
ThreadPool(int numthreads)
           
 
Method Summary
 int countJobs()
           
protected  void finalize()
           
 void joinJobs(List<Runnable> jobs)
           
 void startJobs(List<Runnable> jobs)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool()

ThreadPool

public ThreadPool(int numthreads)
Method Detail

startJobs

public void startJobs(List<Runnable> jobs)

joinJobs

public void joinJobs(List<Runnable> jobs)

stop

public void stop()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

countJobs

public int countJobs()


Copyright © 2011. All Rights Reserved.