python difference between multiprocessing pool and threadpool

Solutions on MaxInterview for python difference between multiprocessing pool and threadpool by the best coders in the world

showing results for - "python difference between multiprocessing pool and threadpool"
Anton
19 Aug 2018
1The multiprocessing.pool.ThreadPool behaves the same as the multiprocessing.Pool with the only difference that uses threads instead of processes to run the workers logic.
Ana Sofia
26 Feb 2016
1multithreading uses seperate python interpreters as processes,
2which do NOT share memory, but can achieve higher performance
3cuz every process has its own cpu usage limit!
4
5multithreading is just useful to seperate i/o tasks and other stuff that is not
6cpu intensive from the main process to continue working while the seperated thread waits for
7something to happen