Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use a pthread mutex in shared memory pthread_mutexattr_setpshared ( <a href="http://linux.die.net/man/3/pthread_mutexattr_setpshared" rel="nofollow noreferrer">http://linux.die.net/man/3/pthread_mutexattr_setpshared</a> ) </p> <p>Also you could try to use futexes directly see <a href="http://people.redhat.com/drepper/futex.pdf" rel="nofollow noreferrer">http://people.redhat.com/drepper/futex.pdf</a> and <a href="http://lxr.linux.no/#linux+v2.6.34/Documentation/robust-futexes.txt" rel="nofollow noreferrer">http://lxr.linux.no/#linux+v2.6.34/Documentation/robust-futexes.txt</a> and <a href="http://www.kernel.org/doc/man-pages/online/pages/man7/futex.7.html" rel="nofollow noreferrer">http://www.kernel.org/doc/man-pages/online/pages/man7/futex.7.html</a> and <a href="http://www.kernel.org/doc/man-pages/online/pages/man2/futex.2.html" rel="nofollow noreferrer">http://www.kernel.org/doc/man-pages/online/pages/man2/futex.2.html</a> particularaly the second one since that talks about getting the kernel to release it when a process holding it dies.</p> <p>Also I think it's possible to make the pthreads locks/CVs robust, which is a better idea since then all the stuff for handling robust locks is done for you (in an even remotely modern distro it should be using the robust futexs described in <a href="http://lxr.linux.no/#linux+v2.6.34/Documentation/robust-futexes.txt" rel="nofollow noreferrer">http://lxr.linux.no/#linux+v2.6.34/Documentation/robust-futexes.txt</a> for pthread_mutex IIRC since that's been in the kernel for quite a while, but you might want to make sure you don't need to do anything to make your pthread_mutex robust)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload