NamedThreadFactory(String poolName){
  group=new ThreadGroup(poolName + "-" + POOL_NUMBER.getAndIncrement());
}

NamedThreadFactory ( String poolName ) { group = new ThreadGroup ( poolName + "-" + POOL_NUMBER . getAndIncrement ( ) ) ; }
constructs the factory . creates new thread group .
