阅读背景:

How to use multiprocessing with class instances in Python?

来源:互联网 

I am trying to create a class than can run a separate process to go do some work that takes a long time, launch a bunch of these from a main module and then wait for them all to finish. I want to launch the processes once and then keep feeding them things to do rather than creating and destroying processes. For example, maybe I have 10 servers running the dd command, then I want them all to scp a file, etc. I am trying to create a class than can run a se




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: