in reply to Re^2: Multi-thread combining the results togetherin thread Multi-thread combining the results together
In this similar example, joining (reaping workers) is done after obtaining results.