submit jobs on multi-core

Jason Friedman jason at powerpull.net
Wed Sep 12 21:59:09 EDT 2012


>>> I have a python script in which I have a list of files to input one by one
>>> and for each file I get a number as an output.
>>> I used for loop to submit the file to script.
>>> My script uses one file at a time and returns the output.
>>>
>>> My computers has 8 cores.
>>> Is there any way that I could submit 8 jobs at a time and get all the
>>> output faster ?
>>
> Or if Python 3.2 is an option, the concurrent.futures module would be
> very well suited for this task.

Agreed.



More information about the Python-list mailing list