Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

What is the correct way to finish multithreaded program?

by Gangabass (Vicar)
on May 05, 2014 at 07:09 UTC ( #1085004=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $q  = Thread::Queue->new();
    my $pq = Thread::Queue->new();
    ...
            $thr->join();
        }
    }
    
  2. or download this
        while ( my $org = $q->dequeue() ) {
    
            parse_org( $org, $mech );
            $pq->enqueue($org);
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-05-28 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?