Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: [Thread::Queue] How to handle unexpected termination and time out in threads

by Preceptor (Chaplain)
on Apr 09, 2014 at 16:24 UTC ( #1081689=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      while ( my $item = $my_q -> dequeue() )
    
  2. or download this
    for ( 1..$num_workers ) {
      my $thr = threads -> create ( \&worker_thread );
    ...
    foreach my $thr ( @worker_threads ) {
      $thr -> join();
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2015-08-03 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (23 votes), past polls