Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么线程池在多进程模块中?_Python_Python 3.x - Fatal编程技术网

Python 为什么线程池在多进程模块中?

Python 为什么线程池在多进程模块中?,python,python-3.x,Python,Python 3.x,为什么没有类似的东西 from multiprocessing.pool import ThreadPool or from multiprocessing.dummy import Pool 因为它给线程提供了一个类似于多处理的接口。不幸的是,它没有文档记录,我们只能猜测或研究ThreadPool的整个代码库:) from threading.pool import Pool

为什么没有类似的东西

from multiprocessing.pool import ThreadPool

or

from multiprocessing.dummy import Pool

因为它给线程提供了一个类似于多处理的接口。不幸的是,它没有文档记录,我们只能猜测或研究ThreadPool的整个代码库:)
from threading.pool import Pool