Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: How can I force thread switching?

by BrowserUk (Pope)
on Sep 30, 2013 at 10:44 UTC ( #1056326=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @threads = map threads->new( \&processrefsthread, $Q ), 1 .. $T;
    
  2. or download this
    sub threadProc {
        my $code = shift;
    ...
    }
    
    my @threads = map threads->new( \&threadProc, \&processrefsthread, $Q 
    +), 1 .. $T;
    
  3. or download this
    sub processrefsthread {
        my $Q = shift;
    ...
        }
        tprint 'Ending';
    }
    
  4. or download this
    C:\test>1056140-buk
    Useless use of division (/) in void context at C:\test\1056140-buk.p
    ...
    ; retrying
    [1] Starting
    ...
    
  5. or download this
    my $Q - ...;
    
    ...
            ...
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-09-30 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (376 votes), past polls