On Sun, Oct 25, 2009 at 00:41 +0900, Hyunchul Kim wrote:
>    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?                 
>          

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/

Attachment: signature.asc
Description: Digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to