[Zope] How to prevent concurrent access to the same object?

Alexei Ustyuzhaninov aiu@quorus-ms.ru
Wed, 13 Feb 2002 10:29:10 +0500


Dieter Maurer wrote:
...

> Please retry this with threads!
> 
>    While Linux uses processes to implement threads, these
>    processes are more tightly coupled than those created by "fork".
> 
>    A fork'ed process has its own address space and its own independent
>    resources (such as locks). Threads, on the other hand, share the
>    same address space and the same resources.
> 
>    Locks will synchronize threads but not (independent) processes.


Yes, you are right. I couldn't even suppose that threads of the same 
process have different pids. Thank you for the explanation.

-- 
Alexei