in reply to limiting children
use strict; while (1) { my $run_ct = how_many_running(); my $wait_ct = how_many_waiting(); foreach (1..(10-$run_ct)) { launch_next_waiting(); } sleep 20; } sub how_many_running{} sub how_many_waiting{} sub launch_next_waiting{}
Hope this helps.
"Make everything as simple as possible, but not simpler." -- Albert Einstein
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: limiting children
by merlyn (Sage) on Oct 12, 2001 at 01:03 UTC |