public ThreadPool(String identifier,int min,int max){
  setIdentifier(identifier);
  setMin(min);
  setMax(max);
  group=new ThreadGroup(identifier);
  group.setDaemon(true);
  try {
    createResources();
  }
 catch (  ResourceUnavailableException e) {
    logger.log(Level.SEVERE,"Creating ThreadPool with min=" + min + ", max="+ max,e);
  }
}

public ThreadPool ( String identifier , int min , int max ) { setIdentifier ( identifier ) ; setMin ( min ) ; setMax ( max ) ; group = new ThreadGroup ( identifier ) ; group . setDaemon ( true ) ; try { createResources ( ) ; } catch ( ResourceUnavailableException e ) { logger . log ( Level . SEVERE , "Creating ThreadPool with min=" + min + ", max=" + max , e ) ; } }
create new named threadpool with a specified amount of minimum and maximum elements in the pool
