How to write thread safe ruby code?

Discussion in 'Ruby' started by Raghu 2009, Nov 24, 2010.

  1. Raghu 2009

    Raghu 2009 Guest

    Hi,

    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 http://www.ruby-forum.com/.
    Raghu 2009, Nov 24, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nicolas_riesch

    how to write thread-safe module ? and pytz

    nicolas_riesch, Aug 10, 2005, in forum: Python
    Replies:
    5
    Views:
    408
    nicolas_riesch
    Aug 15, 2005
  2. Gabriel Rossetti
    Replies:
    0
    Views:
    1,310
    Gabriel Rossetti
    Aug 29, 2008
  3. Replies:
    1
    Views:
    333
    Brian Candler
    Aug 12, 2003
  4. Aredridel

    Not just $SAFE, but damn $SAFE

    Aredridel, Sep 2, 2004, in forum: Ruby
    Replies:
    19
    Views:
    237
  5. John Nagle
    Replies:
    5
    Views:
    463
    John Nagle
    Mar 12, 2012
Loading...

Share This Page