Difference between mutex in windows and linux

linuxsynchronizationwindows

Is that correct that a mutex object in Linux cannot be used for cross process synchronization as opposed to its Windows counterpart?

If that is true – what was the idea to limit mutex synchronisation functionality on Linux?

Best Answer

The difference is kind of "made up", on windows MUTEX is very rarely used, and even then no really for sync but to discover already runnin instance of the program. What has wide use is CRITICAL_SECTION, and it is close equivalent of recursive mutex on linux, solaris and others.

Related Topic