Dec-14-2022, 03:25 AM
If you want to control when they run, don't put each in their own thread? Unless the code something to synchronize execution of the threads, they just finish in whatever order they want. Normally you don't care.
As for them all printing on the same line, I am not seeing that, but it is probably just because stdout is not being flushed after each write
As for them all printing on the same line, I am not seeing that, but it is probably just because stdout is not being flushed after each write