3 ms·
That's not the reason. As I understand it, the GIL is an implementation detail of certain interpreters that prevents threads from running on multiple OS thread
by tlrobinson 11y ago
That's not the reason.
As I understand it, the GIL is an implementation detail of certain interpreters that prevents threads from running on multiple OS threads (and thus multiple CPUs).
JavaScript has explicitly chosen not to support preemptive multithreading at all (aside from Web Workers which don't share memory), while Ruby and Python do have it, even if it can't fully utilize multicore processors.