Python multiprocessing never joins

前端 未结 1 1925
暖寄归人
暖寄归人 2020-12-18 14:56

I\'m using multiprocessing, and specifically a Pool to spin off a couple of \'threads\' to do a bunch of slow jobs that I have. However, for some

相关标签:
1条回答
  • 2020-12-18 15:33

    I don't really have an answer but I read the docs for Apply_async and it seems counter to your stated problem...

    Callbacks should complete immediately since otherwise the thread which handles the results will get blocked.

    I'm not familiar with the Pool but it seems to me that your use-case could easily be handled by this recipe on Python Module of the Week

    0 讨论(0)
提交回复
热议问题