sequential multiple processes
gherron at islandtraining.com
Sat Oct 24 17:47:58 CEST 2009
Hyunchul Kim wrote:
> Hi, all
> How to run multiple processes with sequential input of a thousand of
> data in a script run?
> I have a python script and 1,000 independent input data for it.
> Previously, I divided input data into/ n/ groups and ran a same
> python script /n/ times to use /n/ processors.
> It's inconvenient.
> How can I do same thing in a signle script running?
> Thank you in advance,
Use the subprocess module in your main program to start n subprocesses
and feed each its portion of the data.
More information about the Python-list