Multicore mesh gen. make all threads background threads so they get killed when application is exited.