Mutex programming

Are mutexes OS specific or Process specific?
OS.

http://msdn.microsoft.com/en-us/library/ms682411(VS.85).aspx

(The same is true on other OSes too.)

Hope this helps.
In Windows, a Mutex is global, that is it operates across processes and Critical Sections operate on threads within a process.

32bit Windows arrived with a variety of ways of synchronising. Traditionally, Unix had Semaphores (which is a generalisation of a Mutex). However, FreeBSD (and hence OS X) has a Mutex and I expect all the other Unix/Linux distros to have their own too. http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?mutex+9

It is generally true that Mutexes operate across processes.
Topic archived. No new replies allowed.