public static void main(String[] args) throws Exception {

		/*
		 * Create the Fork/Join pool
		 */
		ForkJoinPool pool=new ForkJoinPool();
		
		/*
		 * Create a new Array of integer numbers with 10000 elements
		 */
		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);
		}
		
		/*
		 * Shutdown the pool
		 */
		pool.shutdown();
		
		/*
		 * Wait for the finalization of the pool
		 */
		pool.awaitTermination(1, TimeUnit.DAYS);
		
		/*
		 * End of the program
		 */
		showLog(pool);
		System.out.printf("Main: End of the program.\n");

	}