|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: Solaris + UltraSparc T2 + Threads: Avoid LCK'sby RMGir (Parson) |
| on Apr 24, 2009 at 11:45 UTC ( #759812=note: print w/ replies, xml ) | Need Help?? |
|
It's not completely crazy to think that getting random numbers might involve a lock, but it's going to depend on the system, and I don't think that's what's happening on the system gulden is using. On Solaris, my perl 5.8.8 gets random numbers by opening /dev/urandom and reading a value. I don't think that's likely to involve locks. But one could certainly imagine a (less than ideal) pseudo-random number generator implementation that uses locks to protect shared state. Mike
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||