Menu

Thread safety in libgtmshr

Anonymous
2012-07-02
2012-12-29
  • Anonymous

    Anonymous - 2012-07-02

    Two questions.

    1. Is the libgtmshr library thread safe?

    2. If so, are there any special considerations when running multiple threads that maybe accessing the GT.M database under the same parent process.

    Thanks,

    Ryan Eastman

     
  • K.S. Bhaskar

    K.S. Bhaskar - 2012-07-05

    Ryan -

    libgtmshr is not thread-safe.  While it remains a long term goal to make it so, and we make incremental changes in that direction with each release, as of today, it is not thread safe.

    If you must run multiple threads within the same process, you should probably have one thread designated as the thread to call GT.M and route all requests through that thread.  I can't guarantee that this will work, but that is the option most likely to work.

    Regards
    - Bhaskar

     

Log in to post a comment.