Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: [OT]: threading recursive subroutines.

by ikegami (Pope)
on Feb 02, 2011 at 21:21 UTC ( #885856=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       my $engine = Engine->new(NUM_WORKERS);
       printf("%s! = %s\n", $_, fibonacci($engine, $_)) for 1..10;
    }
    
  2. or download this
    1! = 1
    2! = 1
    ...
    8! = 21
    9! = 34
    10! = 55
    
  3. or download this
    BEGIN {
       package Semaphore;
    ...
       $INC{'Engine.pm'} = __FILE__;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://885856]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-02-20 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (296 votes). Check out past polls.