[ILUG] Semaphores
Mark Fallon
Mark.Fallon at oracle.com
Wed Sep 6 15:20:56 IST 2000
Hi,
I am looking at using semaphores in a small project I am
working on. So I was poking around the Linux man pages.
I was surprised to find there was no man pages for Posix
Semaphores with my distribution (RH 6.2). They do exist,
they are in libpthread
But real question:
Posix Semaphores (sem_open, sem_close......) should be faster
as they should be implemented in shared memory in user space.
System V are usually implemented in the kernel space so involve
context switches etc.
I was trying to come up with the best way to benchmark them
and I was wondering if anyone new of any other trade-offs
between the two, and do all dists come with libpthread.
Regards,
Mark
--
_______________________________________________________________
Mark Fallon E-mail : Mark.Fallon at oracle.com
Senior Software Engineer Phone : +353-1-8033207
Global Product Engineering Fax : +353-1-8033221
_______________________________________________________________
More information about the ILUG
mailing list