DEVFYI - Developer Resource - FYI

How do other threads own the mutex?

Windows programming Interview Questions and Answers


(Continued from previous question...)

30. How do other threads own the mutex?

Threads in other processes can open a handle to an existing named mutex object by specifying its name in a call to theOpenMutex - function. Any thread with a handle to a mutex object can use one of the wait functions to request ownership of the mutex object. If the mutex object is owned by another thread, the wait function blocks the requesting thread until the owning thread releases the mutex object using theReleaseMutex - function.

(Continued on next question...)

Other Interview Questions