in reply to fork() doesn't care about my sleep()?
T'is easier with threads:
#! perl -slw use strict; use threads; my $run = 0; while( 1 ) { async { my $gna; for ( 'aaaaa' .. 'bbbbb' ) { $gna = uc; } }->detach; sleep 1; printf "\r%d", ++$run; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fork() doesn't care about my sleep()?
by ap0calypse (Initiate) on Nov 11, 2010 at 15:25 UTC |