top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How linux mutex is differ from mutex in VxWorks ??

+7 votes
573 views

What is the difference in behavior between mutex in linux and mutex in VxWorks ??

posted Oct 21, 2013 by Vikas Upadhyay

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

1 Answer

0 votes

A Mutex is a lock that we set before using a shared resource and release after using it. When the lock is set, no other thread can access the locked region of code. So we see that even if thread 2 is scheduled while thread 1 was not done accessing the shared resource and the code is locked by thread 1 using mutexes then thread 2 cannot even access that region of code. So this ensures a synchronized access of shared resources in the code.

answer Jan 15, 2014 by Amit Kumar Pandey
First It is not answer of my question Second it is incomplete info.
If you want I can add more details about Mutex and synchronization.
One difference for mutex between linux and  VxWorks is in Vxworks mutex take care of priority inversion.
I am looking for complete answer.
Similar Questions
+4 votes

where we use socket and where we use message queue? Means what are the problems we face if replace message queue with socket?

...