Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


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.


Re: Multi-Threading

Quoted text here. Click to load it

use Parallel::ForkManager.

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


-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB

Re: Multi-Threading

Thank You.
It seems to be exactly what I was searching for

Site Timeline