Skip to main content

All 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.
user1071847's user avatar
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 {}"...
Neil's user avatar
  • 3,086
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 ...
Luke's user avatar
  • 2,486