Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: submit jobs on multi-core (http://www.velocityreviews.com/forums/t952136-re-submit-jobs-on-multi-core.html)

Jason Friedman 09-13-2012 01:59 AM

Re: submit jobs on multi-core
 
>>> 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.

Matej Cepl 09-13-2012 07:30 AM

Re: submit jobs on multi-core
 
On 13/09/12 03:59, Jason Friedman wrote:
>> Or if Python 3.2 is an option, the concurrent.futures module would be
>> very well suited for this task.


Also available as an external download for Python 2.* ...
http://pypi.python.org/pypi/futures/

Matěj


All times are GMT. The time now is 01:46 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.