Hand-crafted spin loops for thread completion?
kpu opened this issue · comments
Kenneth Heafield commented
The thread object has a join()
. There shouldn't be a busy loop here:
dionwiggins commented
Changed to use Executor.
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
Major changed made to Extract and AddThreadExtract functions.