public static void parallelQuickSort ( final int from , final int to , final IntComparator comp , final Swapper swapper ) { final ForkJoinPool pool = new ForkJoinPool ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ; pool . invoke ( new ForkJoinGenericQuickSort ( from , to , comp , swapper ) ) ; pool . shutdown ( ) ; }
Sorts the specified range of elements using the specified swapper and according to the order induced by the specified comparator using a parallel quicksort .