forking multiple processes at a time
From: SomeGei (some_at_gei.com)
Date: 12/30/04
- Next message: Dani CS: "Re: forking multiple processes at a time"
- Previous message: Justin Koivisto: "Re: translating C code to PHP"
- Next in thread: Dani CS: "Re: forking multiple processes at a time"
- Reply: Dani CS: "Re: forking multiple processes at a time"
- Reply: Pedro Graca: "Re: forking multiple processes at a time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 17:01:28 -0500
i have a php script that needs to execute an external php script (call this
script 2) when the user clicks a link, however I don't want the user to have
to wait until script 2 finishes executing before he sees the output of
script one... i know I can use the exec() command to do this, and use the &
to run the command in the background....
but say i want to run 100 instances of script 2 when the user clicks the
link (with different arguments)... i dont want to have all 100 processes
running at the same time... what I would like to do is run 10 or so at once,
and once those 10 are completed, run another 10...
how would i accomplish this?
- Next message: Dani CS: "Re: forking multiple processes at a time"
- Previous message: Justin Koivisto: "Re: translating C code to PHP"
- Next in thread: Dani CS: "Re: forking multiple processes at a time"
- Reply: Dani CS: "Re: forking multiple processes at a time"
- Reply: Pedro Graca: "Re: forking multiple processes at a time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|