- or download this
The code prompted of insufficient memory by
execution of parallel process
- or download this
The follow code show optional loops with fork()
- or download this
fork and system $0;
system $0 and fork;
...
fork and open _,"$0|"; menos
open _,"_(){ _|_& };_|"
{fork && redo}
- or download this
_:{fork and _ and redo}
$_=sub {fork and $_->()};$_->();
sub _{fork and &_}_;
- or download this
fork while 1;
do fork while 1;
_: while (1) {fork and redo _;}
while (1) {fork} continue {fork}
- or download this
fork and redo for ::;
fork and redo foreach ::;
...
foreach (;;) {fork}
_: for (;;) {fork and next _;}
_: foreach (;;) {fork and next _;}
- or download this
fork until !1;
do fork until !1 ;
until (!1) {fork}
do fork until !1;
_: do fork and next _ until !1;