# Muthythreading in ruby

**URL:** <https://www.ruby-forum.com/t/muthythreading-in-ruby/197221>\
**Category:** Rails\
**Created:** [August 14, 2008, 10:48am UTC](https://www.ruby-forum.com/t/muthythreading-in-ruby/197221 "2008-08-14T10:48:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kajamohaideen\_2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kajamohaideen\_2003](https://www.ruby-forum.com/u/kajamohaideen_2003)\
**Post date:** [August 14, 2008, 10:48am UTC](https://www.ruby-forum.com/t/muthythreading-in-ruby/197221/1 "2008-08-14T10:48:38Z")

</div>

we people are new team for ruby. we trying to put multithreading in our  
code. how is it possible? we want to read a message from queue and  
process that message parellaly and finally insert the message to the DB.  
Can you give me the Idea please.

we want to process 7000 to 10000 message and store it to the Database  
perminute. we are trying through threads. can you please help me how we  
do?

Regards  
Kaja M…A  
Trichy

---

<div class="post-metadata">

**Author:** ![kajamohaideen\_2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@kajamohaideen\_2003](https://www.ruby-forum.com/u/kajamohaideen_2003)\
**Post date:** [August 14, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/muthythreading-in-ruby/197221/2 "2008-08-14T13:06:30Z")

</div>

Ruby is an interpreted language and as such it has a limit on the  
number of threads the virtual machine can handle. I think it is  
limited to 1024. For the volume of data you are talking about, you  
are better of digging into a complied language like C.

On Aug 14, 1:48 pm, Kaja M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
