Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-08-21 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls