[BioRuby] Thread-safety of alignment

Naohisa GOTO ngoto at gen-info.osaka-u.ac.jp
Wed Jan 20 13:50:45 UTC 2010


Hi,

On Wed, 20 Jan 2010 23:09:19 +1100
Andrew Grimm <andrew.j.grimm at gmail.com> wrote:

> Is alignment intended to be thread-safe in bioruby? If so, should I
> use the same alignment factory between threads, or a separate one in
> each thread?

It is not confirmed to be thread-safe, so it is safe to use
separate one in each thread.

Currently, in BioRuby, manipulating the same object from different
threads is not intended. When manipulating the same object from
different threads is needed, using mutex is recommended.

For library developers, it is encouraged to write thread-safe
code if possible, but not mandatory.

Naohisa Goto
ngoto at gen-info.osaka-u.ac.jp / ng at bioruby.org

> 
> Andrew
> _______________________________________________
> BioRuby Project - http://www.bioruby.org/
> BioRuby mailing list
> BioRuby at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioruby




More information about the BioRuby mailing list