# Rails, multiple connections and threads

**URL:** <https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794>\
**Category:** Rails\
**Created:** [April 29, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794 "2009-04-29T16:57:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Post date:** [April 29, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794/1 "2009-04-29T16:57:57Z")

</div>

Hi,

I have a rails app which currently does the following

“After the launch of the page, there is a button click which starts  
another ruby script on server using system(ruby )” This  
execution may take a while around 5-10 mins.

I have following questions

1. While the script is being executed are other connection requests to  
server waiting or are there services?
2. Is there a number parallel connections concept with rails? If yes how  
to configure it?
3. Should I make the script call as part of a new Thread to avoid other  
conenctions from waiting?

Thanks,  
Sudhindra

---

<div class="post-metadata">

**Author:** ![sudhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Post date:** [April 29, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/rails-multiple-connections-and-threads/166794/2 "2009-04-29T18:24:04Z")

</div>

Might want to try:  
…  
fork { `ruby #{RAILS_ROOT}/script/some_script.rb` }  
…

Jeff

On Apr 29, 7:57 am, Sudhi K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
