Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Yet another example to get URLs in parallel

by marioroy (Prior)
on Jun 17, 2017 at 18:08 UTC ( [id://1193019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $mutex->enter( $shared->set( $_ => $fetch->($_) ) );
    
    ...
    3. then stores the result into a shared hash
    4. finally, leaves the mutex
    
  2. or download this
        mce_loop {
            MCE->yield;
    ...
            # ...
        }
    
  3. or download this
        mce_loop {
            MCE->yield;
    ...
    
        }
    
  4. or download this
        tie my %hash, 'MCE::Shared';
        my $shared = MCE::Shared->hash();
    ...
        # 1 trip via the OO interface
        $shared->incrby( number => 2 );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found