Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the mutex in .net? Why we use mutex?

user-image
Question added by mohd ikram , Software Engineer , VSK IT Services Pvt. Ltd.
Date Posted: 2016/08/04
Abhijeet Saxena
by Abhijeet Saxena , Software Engineering Analyst , Accenture Services Pvt. Ltd

a mutex is locking mechanism used to synchronize access to a resource. It provides thread Safety from external threads trying to access a portion of code.

Only one task (can be a thread or process ) can acquire the mutex. 

It means there is ownership associated with mutex, and only the owner can release the lock.

The Mutex type ensures blocks of code are executed only once at a time

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.