A synchronization primitive than can also be used for interprocess synchronization.
Wait can be used to request ownership of the mutex. The state of the mutex is signaled if no thread owns it.
The thread that owns a mutex can specify the same mutex in repeated wait function calls without blocking its execution. It must release the mutex as many times to release ownership.
If a thread terminates normally while owning a mutex, the state of the mutex is set to signaled and the next waiting thread gets ownership.
Object
WaitHandle
Mutex
[Visual Basic] NotInheritable Public Class Mutex Inherits WaitHandle [C#] public sealed class Mutex : WaitHandle [C++] public __gc __sealed class Mutex : public WaitHandle [JScript] public class Mutex extends WaitHandle
[To be supplied.]
Namespace: System.Threading
Assembly: mscorlib.dll