Re: submit jobs on multi-core

Discussion in 'Python' started by Jason Friedman, Sep 13, 2012.

  1. >>> 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.
    Jason Friedman, Sep 13, 2012
    #1
    1. Advertising

  2. Jason Friedman

    Matej Cepl Guest

    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
    Matej Cepl, Sep 13, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hardikh2000

    JOBs............JOBs............JOBs

    hardikh2000, Aug 16, 2005, in forum: Python
    Replies:
    0
    Views:
    402
    hardikh2000
    Aug 16, 2005
  2. nicky boy
    Replies:
    0
    Views:
    677
    nicky boy
    Feb 7, 2009
  3. nicky boy
    Replies:
    0
    Views:
    718
    nicky boy
    Feb 7, 2009
  4. Laszlo Nagy

    Re: submit jobs on multi-core

    Laszlo Nagy, Sep 11, 2012, in forum: Python
    Replies:
    1
    Views:
    187
    zig-zag
    Sep 11, 2012
  5. Oscar Benjamin

    Re: submit jobs on multi-core

    Oscar Benjamin, Sep 11, 2012, in forum: Python
    Replies:
    0
    Views:
    203
    Oscar Benjamin
    Sep 11, 2012
Loading...

Share This Page