Re:Ruby core classes aren't thread safe
by incidently on Monday February 25, 2013 @04:24PM
(#5281907)
The article seems to be wrong in several aspects ... First, the issue described has nothing to do with arrays; the same problem happens when using a plain number:
Second, the mutex in the OP's code synchronizes the whole block passed to a thread, i.e. there's no parallelism at all (the second thread waits until the first one finishes, and so on). It should rather be something like:
[ Parent
| on HN ]
There are no comments on this comment yet.