multiprocessing module question

Discussion in 'Python' started by dmitrey, Dec 12, 2011.

  1. dmitrey

    dmitrey Guest

    hi all,
    suppose I have a func F, list [args1,args2,args3,...,argsN] and want
    to obtain r_i = F(args_i) in parallel mode. My difficulty is: if F
    returns not None, than I should break calculations, and I can't dig in
    multiprocessing module documentation how to do it. Order doesn't
    matter for me (I have to find 1st suitable, where result of F is not
    None)
    Could anyone scribe me an example?
    Thank you in advance, D.
    dmitrey, Dec 12, 2011
    #1
    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. sturlamolden

    multiprocessing module (PEP 371)

    sturlamolden, Jun 4, 2008, in forum: Python
    Replies:
    6
    Views:
    421
    John Nagle
    Jun 8, 2008
  2. Replies:
    9
    Views:
    1,011
  3. Graham Dumpleton
    Replies:
    4
    Views:
    583
    Graham Dumpleton
    Feb 22, 2009
  4. dmitrey
    Replies:
    1
    Views:
    327
    Terry Reedy
    Mar 14, 2009
  5. Sebastien Binet
    Replies:
    4
    Views:
    857
    Sebastien Binet
    Dec 16, 2009
Loading...

Share This Page