abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject FOM Interfaces and Thread Safety
Date Wed, 13 Sep 2006 21:16:36 GMT
Currently the FOM Interface are not threadsafe.  For instance, if
multiple threads try to call entry.setId(...) at the same time, it could
cause some rather interesting results.  However, synchronizing the
methods by default causes a very significant performance drop.  I
propose that we simply take it as a given that the FOM objects are not
threadsafe and that end developers, if they want to allow multiple
threads to modify individual FOM objects, they must provide the
necessary synchronization.

- James

View raw message