This is the mail archive of the
mailing list for the glibc project.
Re: Posix semaphore between different processes
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: Re: Posix semaphore between different processes
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Wed, 29 Nov 2000 09:17:58 -0800
> I don't even want to start with this. All you can achieve is a poor
> quality imitation. You cannot work with the SysV stuff alone since
> you cannot implement the namespace handling correctly. Adding some
> regular files to implement the namespace side only means that you open
> all kind of security holes and possibilities to screw up the system.
> If you want to have POSIX semaphores implement them in the kernel.
> Jakub has a POSIX message queue implementation, following the concept
> of the POSIX shared memory implementatino (i.e., use it to implement
> the SysV variant and add a pseudo filesystem). You'll have to do the
> same for semaphores.
Are you suggesting we implement POSIX semaphore in kernel, including
the inter-thread one? I guess kernel can tell if 2 tasks belong to
the same process or not.
H.J. Lu (email@example.com)