Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Threaded Code Not Faster Than Non-Threaded -- Why?

by BrowserUk (Patriarch)
on Jan 05, 2014 at 21:16 UTC ( [id://1069421]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MThread::Queue -E"$Q=new Thread::Queue; $Q->pending while Win32:
    +:Sleep( 1 )"
    
  2. or download this
    perl -Mthreads -MThread::Queue -E"async{ sleep }->detach for 1 .. 16; 
    +$Q=new Thread::Queue; $Q->enqueue( qq[/a/longish/path/and/filename$_]
    + ) for 1 .. 1e6; sleep;"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-25 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found