top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

what exactly happens when we call pthread_mutex_init ?

+3 votes
what exactly happens when we call pthread_mutex_init ?
posted Dec 3, 2014 by Bheemappa G

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Could not understand the intention of question so just posting the man page -
"The pthread_mutex_init() function initialises the mutex referenced by mutex with attributes specified by attr. If attr is NULL, the default mutex attributes are used; the effect is the same as passing the address of a default mutex attributes object. Upon successful initialisation, the state of the mutex becomes initialised and unlocked."

Please specify the query in more detail :)

Similar Questions
+7 votes

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

+1 vote

I wrote a multi-threaded program using pthread library, but I want execution of threads in a specific order.
What I have to do ?

+2 votes

Please explain in detail, I know the answer but may not be proper?

+2 votes

You are given two processes and each process is having four threads. One of the thread is having performance issue. How will you find out that thread which is having problem.

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.