question: public void scheduleTasks ( ) { TaskManager . Task [ ] tmp = createTasks ( ) ; if ( tmp != null ) { if ( logger . isLoggable ( Level . FINEST ) ) { logger . log ( Level . FINEST , "Job:scheduleTasks with {0} tasks" , new Integer ( tmp . length ) ) ; } results = new Object [ tmp . length ] ; attempts = new int [ tmp . length ] ; setPending ( tmp . length ) ; for ( int i = 0 ; i < tmp . length ; i ++ ) { synchronized ( tasks ) { tasks . put ( tmp [ i ] , new Integer ( i ) ) ; pool . add ( tmp [ i ] ) ; if ( logger . isLoggable ( Level . FINEST ) ) { logger . log ( Level . FINEST , "Job:scheduleTasks added {0} to thread pool" , tmp [ i ] ) ; } attempts [ i ] = 0 ; } } } }
target:  Schedules tasks for execution