.NET threading - Explain
the purpose of Mutex class in .NET - March 13, 2009 at 15:20 PM by Amit
Satpute
Explain the purpose of Mutex class in .NET.
System uses synchronization mechanism to make sure that a resource is used by
only one thread at a time when more than one thread needs to access a shared
resource at the same time.
Mutex grants exclusive access to the shared resource to a single thread.
A second thread that needs to acquire a particular mutex is suspended until the
first thread releases the mutex.
|