Grokking Java Interview Questions
Vote

0% completed

​

The Fork Join Pool

Suppose 8 threads add 1,000,000 order totals. If each thread receives one part of 125,000 totals, and one thread works at half the speed of the others, the other 7 threads finish early and wait for it. If the work is cut into 128 parts of about 7,800 totals, a thread that finishes early can take a part that is still waiting.

The fork join framework is built for this second form. The four questions concern tasks that divide themselves, threads that take tasks from each other, the size at which dividing should stop, and the pool that a whole program shares.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content