Interview questions

Purpose of Mutex class in .NET

<<Previous   Next>>

.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. 

<<Previous   Next>>
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring