OneSecondLongTask task=new OneSecondLongTask();
// Creates a new Handler
Handler handler = new Handler();
// Creates a Factory
AlwaysThrowsExceptionWorkerThreadFactory factory=new AlwaysThrowsExceptionWorkerThreadFactory();
// Creates a new ForkJoinPool
ForkJoinPool pool=new ForkJoinPool(2,factory,handler,false);
// Execute the task in the pool
pool.execute(task);