public ThreadPool(String name,int poolSize){
  this.poolSize=poolSize;
  this.poolName=name;
  taskList=new LinkedList<Runnable>();
  threads=new WorkerThread[poolSize];
  createThreads();
}

public ThreadPool ( String name , int poolSize ) { this . poolSize = poolSize ; this . poolName = name ; taskList = new LinkedList < Runnable > ( ) ; threads = new WorkerThread [ poolSize ] ; createThreads ( ) ; }
constructs a thread pool with given parameters .
