All Questions
3 questions
5
votes
1
answer
4k
views
Python2: multiprocessing.dummy.Pool vs multiprocessing.pool.ThreadPool
In python 2, is there any difference between multiprocessing.dummy.Pool and multiprocessing.pool.ThreadPool? The source code seems to imply they're the same.
0
votes
1
answer
2k
views
How to use python threadpool to execute none static function
I'm new on multithreading. I have went through a few document online. I notice examples are using static function as Threadpool input. such as,
def task(n):
time.sleep(3)
print("Processing {}"...
1
vote
1
answer
1k
views
AsyncResult.successful() returns false, get() raises attribute error
I am trying to use Python's ThreadPool in the multiprocessing module for the first time to try and speed up some very slow log parsing.
Unfortunately, it doesn't appear to be working properly. And I ...