Function gen() generates a string, which is a command to be passed into os.system().
I need to start 20 threads at the same time, call gen() for each thread, and run the command gen() gives me in each thread. (parallel)
Once a command finishes executing in a thread, I want to call gen() again to generate another command, and run that command in the same thread.
I want to to keep doing this until 10 minutes have passed.
How do I do this?