This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Posix semaphore between different processes
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: Posix semaphore between different processes
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 29 Nov 2000 09:56:04 -0800
- Cc: "H . J . Lu" <hjl at valinux dot com>, GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.10.10011290933090.5065-100000@ashi.FootPrints.net>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Kaz Kylheku <kaz@ashi.footprints.net> writes:
> Why? Function pointers be used to bind a different set of operations for a
> process-shared semaphore at run time. Going to the kernel for inter-thread
> semaphore operations would be a drag.
We always go though the kernel, we use signals and this is much more
costly. Of course there are optimizations possible and this is using
an m:n model which is honestly considered.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------