let thread_group manage dynamiclly allocated thread