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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -