Saturday 3 December 2011

Diffeence between mutex and semaphore

Diffeence between mutex and semaphore

Hi,
I want to the differences between mutex and semaphore.
As i know differences are,
1.Mutex needs to be initialized but semaphore need not be.
2.semaphores will be alive even if the process dies where as mutex dies with the scope where it was declared.
3. mutex can have recurcive lock but semaphores cant.

are these valid ? if not what are the actual differences

No comments:

Post a Comment