public void manage ( int workersCount ) { this . workers . clear ( ) ; WorkerThread worker = null ; for ( int i = 0 ; i < workersCount ; i ++ ) { worker = new WorkerThread ( this ) ; //TODO expensive use thread pool this . manage ( worker ) ; } }
Manage a number of default worker threads