public void initPool ( String name ) { running = true ; for ( int i = size ; -- i >= 0 ; ) { PoolThread thread = new PoolThread ( ) ; threadPool . add ( thread ) ; thread . setName ( String . format ( "%s Handler" , name ) ) ; thread . start ( ) ; } }
Initializes the pool populating it with n started threads .