LWN.net Logo

Goodbye semaphores?

Goodbye semaphores?

Posted Jan 5, 2006 9:52 UTC (Thu) by eludias (subscriber, #4058)
In reply to: Goodbye semaphores? by thedevil
Parent article: Goodbye semaphores?

http://people.redhat.com/mingo/generic-mutex-subsystem/pa... contains:

+++ linux/Documentation/mutex-design.txt
@@ -0,0 +1,135 @@
+Generic Mutex Subsystem
+
+started by Ingo Molnar <mingo@redhat.com>
+
+ "Why on earth do we need a new mutex subsystem, and what's wrong
+ with semaphores?"

...and boils down to: smaller data (16 instead of 20 bytes/mutex), smaller code, faster (because of unknown bug in semaphore implementation), stricter semantics since a mutex in 'owned' by the locker while a semaphore shares ownership between all lockers.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds