ForkJoin

Preview

Priya wants to sum sales numbers for every QuickCart order this month. The list has fifty thousand entries. A plain loop works, but she wonders if splitting the list in half — and half again — could use all her CPU cores better. That is the divide-and-conquer idea. Java's Fork...

Sign in to read the full chapter.

Checking access…