sequential multiple processes
Gary Herron
gherron at islandtraining.com
Sat Oct 24 11:47:58 EDT 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,
>
> Hyunchul
Use the subprocess module in your main program to start n subprocesses
and feed each its portion of the data.
Gary Herron
More information about the Python-list
mailing list