top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

OS: What is the meaning of mutex ?

+1 vote
313 views
OS: What is the meaning of mutex ?
posted Nov 27, 2014 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

mutual exclusion:
You will occasionally want to access two resources at once. Perhaps you are using one of the resources, and then discover that the other resource is needed as well. There could be a problem if two threads attempt to claim both resources but lock the associated mutexes in different orders. For example, if the two threads lock mutexes 1 and 2 respectively, then a deadlock occurs when each attempts to lock the other mutex.

answer Nov 27, 2014 by Sridharan P
...