Perl Threads

Discussion in 'Perl' started by Chris, Aug 8, 2003.

  1. Chris

    Chris Guest

    I'm new to threading in perl and I need some advice/help/sample code.
    I basically want to loop for a while and spawn say 5 threads each
    doing something. As a thread ends I want to check it's exit status
    and spawn the thread again. Now I want to exit the loop after a
    period of time but I also want the threads to finish completely before
    exiting the loop. I've looked into some thread pool and queue stuff
    but I'm still unsure as to what will suit my needs in this case.
    Anybody got any ideas?

    - Cristov
     
    Chris, Aug 8, 2003
    #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. dpackwood
    Replies:
    3
    Views:
    1,862
  2. yoda
    Replies:
    2
    Views:
    478
    =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=
    Aug 1, 2005
  3. threads without threads

    , Aug 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    446
    William Ahern
    Aug 27, 2004
  4. Pedro Pinto

    Java Threads - Get running threads

    Pedro Pinto, Apr 8, 2008, in forum: Java
    Replies:
    2
    Views:
    1,519
    Arne Vajhøj
    Apr 9, 2008
  5. Une bévue
    Replies:
    0
    Views:
    184
    Une bévue
    Jun 14, 2006
Loading...

Share This Page