On Sun, Oct 25, 2009 at 00:41 +0900, Hyunchul Kim wrote: > [0;37m How to run multiple processes with sequential input of a thousand > of data > [0;37m in a script run? > > [0;37m I have a python script and 1,000 independent input data for it. > > [0;37m Previously, I divided input data into [0;36mn[0;37m groups and > ran a same python > [0;37m script [0;36mn[0;37m times to use [0;36mn[0;37m processors. > > [0;37m It's inconvenient. > > [0;37m How can I do same thing in a signle script running? >
Have a look at [1] it describes a way to multiplex data to different receivers. You can then combine that with the multiprocessing/threading module in the stdlib. kind regards Wolodja [1] http://www.dabeaz.com/generators/
signature.asc
Description: Digital signature
-- http://mail.python.org/mailman/listinfo/python-list