Subject: Re: inter process locking
To: Feng Lu <Feng.Lu@mcs.vuw.ac.nz>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: netbsd-help
Date: 10/25/2002 22:31:33
On Sat, Oct 26, 2002 at 04:24:57PM +1300, Feng Lu wrote:
> I am using mutex for inter process locking. In the following code, I
> expect that when a process is runing, its another instance should wait
> until the previous instance completes. However, this does not work. why?
pthread mutexes only work in a single process, between two or more threads
within that process. You cannot expect them to work between different
processes.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>