Tags

,

links:
http://blog.feabhas.com/2009/09/mutex-vs-semaphores-%e2%80%93-part-1-semaphores/
http://blog.feabhas.com/2009/09/mutex-vs-semaphores-%e2%80%93-part-2-the-mutex/
http://blog.feabhas.com/2009/10/mutex-vs-semaphores-%e2%80%93-part-3-final-part-mutual-exclusion-problems/
http://www.embedded-linux.co.uk/tutorial/mutex_mutandis

summary:
– mutex came after semaphore
– generally a mutex “is not only” a semaphore with count equals 1
– mutex has thread/task ownership (except pthread default fast mutex) but semaphore doesn’t
– pthread mutex has fast(default, speed over correctness), error checking and recursive modes

Advertisements