Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How to write thread safe ruby code?

Thread Tools

How to write thread safe ruby code?

Raghu 2009
Posts: n/a

I am using RUBY VERSION: 1.8.6,Rails 2.3.2 and Backgroundrb. I am
running into inconsistent data when using 10 threads per backgroundrb
worker class.
I each thread retrieves orders for each of the store. Some times
i see orders of the one store are copied into another store.
So orders of the one thread are copied into another thread.

Can any one help in this regard?

Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
html5lib not thread safe. Is the Python SAX library thread-safe? John Nagle Python 5 03-12-2012 04:07 PM
os.ChDir() not thread-safe; was : Is tempfile.mkdtemp() thread-safe? Gabriel Rossetti Python 0 08-29-2008 08:30 AM
how to write thread-safe module ? and pytz nicolas_riesch Python 5 08-15-2005 06:40 AM
$SAFE = 5 and Safe Ruby Misleading? Ruby 1 08-11-2003 11:35 PM