# Multithreading

**URL:** <https://www.ruby-forum.com/t/multithreading/197084>\
**Category:** wxRuby\
**Created:** [August 14, 2008, 11:10am UTC](https://www.ruby-forum.com/t/multithreading/197084 "2008-08-14T11:10:19Z")\
**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, 11:10am UTC](https://www.ruby-forum.com/t/multithreading/197084/1 "2008-08-14T11:10:19Z")

</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:47pm UTC](https://www.ruby-forum.com/t/multithreading/197084/2 "2008-08-14T13:47:32Z")

</div>

Kaja M. wrote:

> 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?

I’m not sure if your question is about wxRuby and threads as you seem to  
have posted this question to numerous forums…

Anyway, for threading with wxRuby GUIs, look at the  
samples/etc/threaded.rb example in the distribution, and search the  
mailing list archives. This topic has been much discussed before.

alex
