3 ms·
Why would there be need for thread safety in ruby? There's a global interpreter lock so there's really only 1 thread running at any time -- every line of your
by catch23 17y ago
Why would there be need for thread safety in ruby? There's a global interpreter lock so there's really only 1 thread running at any time -- every line of your ruby code should be atomic. The more threads you schedule, the more the interpreter has to cycle them in and out, so basically threads are somewhat useless in ruby. The devs had to spend time making Rails thread safe due to JRuby where there isn't a GIL.