aijin has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a server at the moment. Currently, it receives requests from the clients and pushes them into a list. Then, it forks off a new process to process the next request popped off the list.
What I want it to do, is watch how many children are running and only start a new process if there are under x children.
This would be, from what I've read, easy as pie if I had Parallel::ForkManager available, but I don't, so it's not turing out to be that easy.
Anyone have any design advice or tips for me? I'm new at this whole server thing and having a rather rough time of it.
-aijin
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: limiting children
by dragonchild (Archbishop) on Oct 11, 2001 at 21:41 UTC | |
by aijin (Monk) on Oct 11, 2001 at 21:51 UTC | |
by dragonchild (Archbishop) on Oct 11, 2001 at 22:00 UTC | |
by aijin (Monk) on Oct 11, 2001 at 22:03 UTC | |
by dragonchild (Archbishop) on Oct 11, 2001 at 22:12 UTC | |
by perrin (Chancellor) on Oct 11, 2001 at 22:13 UTC | |
Re: limiting children
by fokat (Deacon) on Oct 12, 2001 at 00:01 UTC | |
Re: limiting children
by merlyn (Sage) on Oct 12, 2001 at 00:10 UTC | |
Re: limiting children
by jlongino (Parson) on Oct 12, 2001 at 00:19 UTC | |
by merlyn (Sage) on Oct 12, 2001 at 01:03 UTC | |
Re: limiting children
by belg4mit (Prior) on Oct 12, 2001 at 01:35 UTC |
Back to
Seekers of Perl Wisdom