int array[]=new int[10000];
/*
* Create a new task
*/
Task task1=new Task(array,0,array.length);
/*
* Execute the task in the Fork/Join pool
*/
pool.execute(task1);
/*
* Wait for the finalization of the task writing information
* about the pool every second
*/
while (!task1.isDone()) {
showLog(pool);
TimeUnit.SECONDS.sleep(1);
}
/*