Java SE 8—Class Arrays Method parallelSort

The Arrays class now has several new “parallel” methods that take advantage of multi-core hardware. Arrays method parallelSort can sort large arrays more efficiently on multicore systems. In Section 23.12, we create a very large array and use features of the Java SE 8 Date/Time API to compare how long it takes to sort the array with methods sort and parallelSort.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.