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; }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

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

    thanks a lot for that hint with threading, that's really working for me!

    and thanks to alle the others too, you were really helpful! :)