# Current threading model of Rails?

**URL:** <https://www.ruby-forum.com/t/current-threading-model-of-rails/223457>\
**Category:** Rails\
**Created:** [October 5, 2012, 7:24am UTC](https://www.ruby-forum.com/t/current-threading-model-of-rails/223457 "2012-10-05T07:24:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 5, 2012, 7:24am UTC](https://www.ruby-forum.com/t/current-threading-model-of-rails/223457/1 "2012-10-05T07:24:47Z")

</div>

Can anyone tell me the current state of Rails and threading? Do you need  
a  
bunch of mongrel processes running on a single machine or is it possible  
to  
get away with just one that handles concurrent requests? I did a bunch  
of  
Google searches and couldn’t find a definitive answer on the current  
request model used by Rails.

---

<div class="post-metadata">

**Author:** ![coop75](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@coop75](https://www.ruby-forum.com/u/coop75)\
**Post date:** [October 5, 2012, 11:30am UTC](https://www.ruby-forum.com/t/current-threading-model-of-rails/223457/2 "2012-10-05T11:30:45Z")

</div>

Rails can do either (config.thread\_safe! turns on multithreading, and  
will  
be the default in rails 4), but the deciding factor is what ruby  
implementation you use: MRI doesn’t allow true concurrency in general  
(specific cases like blocking on IO, waiting for a mysql query do permit  
some concurrency). jruby doesn’t have this problem and rubinius has also  
done away with the global vm lock.

Fred
