fig_2_19 provided the parallel_do_feeder for the tree handling, but didn't have a comparison with serial time, as in other examples.
I added the speed-up comparison vs serial time. Also balanced the data initialization so half are primes. I'm attaching the modified code.
serial_time == 1.72244 seconds parallel_time == 0.374743 seconds speedup == 4.59634
fig_2_19.txt
fig_2_19 provided the parallel_do_feeder for the tree handling, but didn't have a comparison with serial time, as in other examples.
I added the speed-up comparison vs serial time. Also balanced the data initialization so half are primes. I'm attaching the modified code.
serial_time == 1.72244 seconds parallel_time == 0.374743 seconds speedup == 4.59634fig_2_19.txt