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
_______________________________________________________________
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!