LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Semaphores

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell