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
Post a Comment