recently i met a problem, I call a child thread in the main thread to do something may be time consuming. But i don't want to wait in main thread for the child to terminate for too long time.
so i wrote code like this:
thread=threading.Thread(target=some_func,args=(some_ars,))
thread.start()
thread.join(10.0) #waiting for just 10 seconds
...
sys.exit(return_code)
but i found when the child last longer than 10s, after the main thread exit,the child thread still doing its work.It's that OK? I heard when the main thread exit all its child threads will exit.