sequential multiple processes
Wolodja Wentland
wentland at cl.uni-heidelberg.de
Sat Oct 24 12:07:14 EDT 2009
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 853 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20091024/c1a0b9cd/attachment-0001.sig>
More information about the Python-list
mailing list