Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 1996 09:10:53 -0400 (EDT)
From:      "Ron G. Minnich" <rminnich@Sarnoff.COM>
To:        hackers@freebsd.org
Subject:   Re: filemalloc etc. for shared memory between processes
Message-ID:  <Pine.SUN.3.91.960708091005.18917F-100000@terra>
In-Reply-To: <199607080957.MAA19692@office.elvisti.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
> 	I wonder how one should properly implement locking of memory
> 	regions in this case. Will appropriate fcntl(2) be
> 	enough?

no, you use the fastlock() i posted earlier. fcntl is probably the worst 
way there is to lock shared regions. You want memory-value-based locking 
so you can use compare-and-swap (or equivalent).

ron



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960708091005.18917F-100000>