Multi-Threading

Discussion in 'Perl Misc' started by pmlo, May 25, 2005.

  1. pmlo

    pmlo Guest

    Hello,

    Here is my problem :
    - I want to make an interaction between Perl (5.8.6) and Php (5.0.4).
    - I should execute the command line `php script.php` 1000 times
    - Execution time of the PHP script is not predictable
    - I want to launch 5 PHP scripts simultanously. When one of the five is
    terminated, another should be launched.

    Does anyone have some perl code that can do that ?

    Thank you in advance for your answers, becaus I'm a little bit lost.

    Arthur
    pmlo, May 25, 2005
    #1
    1. Advertising

  2. pmlo

    Guest

    "pmlo" <> wrote:
    > Hello,
    >
    > Here is my problem :
    > - I want to make an interaction between Perl (5.8.6) and Php (5.0.4).
    > - I should execute the command line `php script.php` 1000 times
    > - Execution time of the PHP script is not predictable
    > - I want to launch 5 PHP scripts simultanously. When one of the five is
    > terminated, another should be launched.
    >
    > Does anyone have some perl code that can do that ?
    >
    > Thank you in advance for your answers, becaus I'm a little bit lost.


    use Parallel::ForkManager.

    The docs have an example which should be self-explanatory.

    Xho

    --
    -------------------- http://NewsReader.Com/ --------------------
    Usenet Newsgroup Service $9.95/Month 30GB
    , May 25, 2005
    #2
    1. Advertising

  3. pmlo

    pmlo Guest

    Thank You.
    It seems to be exactly what I was searching for
    pmlo, May 26, 2005
    #3
    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. Replies:
    38
    Views:
    1,273
    Dennis Lee Bieber
    Feb 15, 2005
  2. Replies:
    9
    Views:
    1,035
    Mark Space
    Dec 29, 2007
  3. Steven Woody
    Replies:
    0
    Views:
    404
    Steven Woody
    Jan 9, 2009
  4. Steven Woody
    Replies:
    0
    Views:
    445
    Steven Woody
    Jan 9, 2009
  5. akineko
    Replies:
    3
    Views:
    2,623
    Jesse Noller
    Jan 29, 2009
Loading...

Share This Page