logo       

Re: inter process locking: msg#00274

os.netbsd.help

Subject: Re: inter process locking

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@xxxxxxxxxxxxxxxxx>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise