[ZODB-Dev] Thread Safety, Reaimed

Norfleet, Sheppard S. sheppard.norfleet at ngc.com
Thu Aug 7 14:42:39 EDT 2003


Stefan, 

Let me know when, not that far from Fredricksburg ;)

Regards,

Shep

-----Original Message-----
From: Stefan H. Holek [mailto:stefan at epy.co.at]
Sent: Thursday, August 07, 2003 3:54 PM
To: Norfleet, Sheppard S.
Cc: 'zodb-dev at zope.org'
Subject: RE: [ZODB-Dev] Thread Safety, Reaimed


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