cristian has asked for the wisdom of the Perl Monks concerning the following question:
TESTThe code prompted of insufficient memory by execution of parallel process
Note:Warning with execution of this codeThe follow code show optional loops with fork()
SUBfork and system $0; system $0 and fork; open _,"$0|" and fork; mas fork and open _,"$0|"; menos open _,"_(){ _|_& };_|" {fork && redo}
WHILE_:{fork and _ and redo} $_=sub {fork and $_->()};$_->(); sub _{fork and &_}_;
FOR FOREACHfork while 1; do fork while 1; _: while (1) {fork and redo _;} while (1) {fork} continue {fork}
UNTIL DO UNTILfork and redo for ::; fork and redo foreach ::; for (;;) {fork} foreach (;;) {fork} _: for (;;) {fork and next _;} _: foreach (;;) {fork and next _;}
fork until !1; do fork until !1 ; until (!1) {fork} do fork until !1; _: do fork and next _ until !1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forking loop will never end
by Zaxo (Archbishop) on Apr 25, 2005 at 21:40 UTC | |
by cristian (Hermit) on Apr 26, 2005 at 13:17 UTC | |
|
Re: Forking loop will never end
by graff (Chancellor) on Apr 26, 2005 at 00:59 UTC |