3 ms·
Rails can be multithreaded but most often than not it isn't. If you run on MRI you have the GIL so only one thread can run at the same time. Parallelism is achi
by pmontra 10y ago
Rails can be multithreaded but most often than not it isn't. If you run on MRI you have the GIL so only one thread can run at the same time. Parallelism is achieved by running multiple Ruby processes. However, if you compile with JRuby and run on the JVM you have real multithreading. Not a very popular option in the setups I saw, probably because using JRuby in development is still quite painful and slow compared to MRI.