I saw the behaviors as follows:
threading.Thread
andmultiprocessing.Process
do not raise to the main thread.multiprocessing.Pool
andmultiprocessing.pool.ThreadPool
(this is not documented at all) leave zombie threads.
The results show that concurrent.futures
is the best choice for threading and multiprocessing in Python!
I did this experiment on Python 2.7.9, and Python 2.x does not have concurrent.futures
, so I installed it by pip command pip install futures
.