top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How linux mutex is differ from mutex in VxWorks ??

+7 votes
142 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 Google+ Share Button LinkedIn Share Button Multiple Social 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?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...