[ZODB-Dev] Thread Safety, Reaimed
Stefan H. Holek
stefan at epy.co.at
Thu Aug 7 22:54:11 EDT 2003
It's not a Singleton at all, it's a Borg. And yes, every instance of Borg
accesses the very same lock object. You could say that the lock itself *is*
a Singleton.
Also see this:
<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531>
You lost your bet and owe me a drink. ;-)
Stefan
--On Donnerstag, 07. August 2003 12:36 -0700 "Norfleet, Sheppard S."
<sheppard.norfleet at ngc.com> wrote:
> It appears to me that its not a true singleton, and I bet its not thread
> safe. The question is, for every instance of borg are you accessing just
> one lock object, !OR! is it creating a new lock object and initializing it
> to the others state at that moment in time. if its the former then it is
> thread safe, if its the later then it is not.
>
> Thanks
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
More information about the ZODB-Dev
mailing list