linux - Could pthread mutex with PTHREAD_PROCESS_SHARED attribute be used to synchronize two unrelated process(not father and child)? -


we use pthread mutex pthread_process_shared attribute synchronize father , child process:

1,mmap

2,pthread_mutexattr_init , pthread_mutexattr_setpshared

3,fork

but if want synchronize 2 unrelated process(not father , child) using phtread mutex, how? please give example?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -