[Zope] External methods & persistance and thread safety

Dieter Maurer dieter@handshake.de
Thu, 5 Jun 2003 22:12:46 +0200


Dennis Allison wrote at 2003-6-4 13:08 -0700:
 > ...
 > Document content is either created by a template or checked out from CVS
 > by the user.  The user can also commit their workproduct to CVS.  These 
 > transactions are managed by External Methods.

Each user has his own CVS working directory, right?

Where do you make the "chdir" to the working directory?
In the External Method or in the external process?

When you do it in the External Method, you get non-deterministic
behaviour:

	The working directory is a process resource shared
	by all threads.
	When the working directory is modified concurrently
	in different thread, the resulting working directory
	in undefined.


Dieter