Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: thread/fork boss/worker framework recommendation

by BrowserUk (Patriarch)
on Dec 01, 2011 at 16:17 UTC ( [id://941111]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    
    print "Main waiting for threads to die";
    $_->join for @workers;
    
  2. or download this
    [16:03:44.95] c:\test>ThreadPoolExample -WORKERS=4 -ITEMS=20 -MAXWORK=
    +1
    Thread: 1 started
    ...
    Thread: 1 processing workitem 0.765777587890625
    Thread: 1 ended
    Thread: 4 ended
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-20 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found