Hi: I cannot find documentation that would tell me how zope manages thread synchronization For instance: If there is a python script that adds and removes properties from a folder what happens if there are two http requests to launch the script. Does one thread get a lock on the folder? does on thread get a lock on the Folder property? Any insight would be appreciated? Clark
On Wednesday 31 October 2001 07:11 am, Clark OBrien wrote:
Hi: I cannot find documentation that would tell me how zope manages thread synchronization
nutshell version. zope uses optimistic conflict resolution, no application level locking takes place, because all threads have their own object spaces. only on commits, is there some synchronization (deep within the zodb) to insure that there weren't conflicts, if so a conflict error is raised, and the request gets retried. applications can define their own conflict resolution, see the zodb wikis and zope developer's guide for more details. kapil
The only thing I've read about it is: http://www.zope.org/Documentation/ZDG/Persistence.stx (see end of chapter on threadsafety) Regards, Tom. ----- Original Message ----- From: "Clark OBrien" <COBrien@isis-server.vuse.vanderbilt.edu> To: <zope@zope.org> Sent: Wednesday, October 31, 2001 4:11 PM Subject: [Zope] zope operations atomic?
Hi: I cannot find documentation that would tell me how zope manages thread synchronization
For instance: If there is a python script that adds and removes properties from a folder what happens if there are two http requests to launch the script. Does one thread get a lock on the folder? does on thread get a lock on the Folder property?
Any insight would be appreciated? Clark
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Clark OBrien writes:
I cannot find documentation that would tell me how zope manages thread synchronization There is a PDF document about ZODB3 (--> zope.org).
It describes quite well Zopes transaction subsystem. Alternatively, the mailing list archives. This has been discussed several times.... Dieter
participants (4)
-
Clark OBrien -
Dieter Maurer -
kapil thangavelu -
Tom Deprez