connected running threads onto main thread so no busy waiting is needed