Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Solaris + UltraSparc T2 + Threads: Avoid LCK's

by RMGir (Prior)
on Apr 23, 2009 at 11:22 UTC ( [id://759510]=note: print w/replies, xml ) Need Help??


in reply to Solaris + UltraSparc T2 + Threads: Avoid LCK's

Edit: Ignore all of this, it looks like BrowserUK figured it out just above...

I don't have a sufficiently recent threaded perl build around to test this theory, but I'd look at that assignment to $tmp in the inner loop in test2.

What happens if you just copy the int(rand(10)) into the inner loop without an assignment?

Of course, if this turns out to be the answer, WHY an assignment to a thread-local variable would cause that is a different question...


Mike
  • Comment on Re: Solaris + UltraSparc T2 + Threads: Avoid LCK's

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found