In article <hiUjp.6071$yl2.1...@newsfe07.iad>, Bruce Lilly <bruce.li...@gmail.com> writes:
>Mutexes can work across processes; look for pthread_mutexattr_setpshared. Thanks. >The first party who needs the mutex (if not already initialized) >initializes it. Destruction is another issue. How do I decide who is first? >There are a lot of complications (e.g. the mutex (and its attributes) >typically are mapped to different addresses in different processes). What happens to a mutex in shared memory if all the processes using that memory go away? Does that shared memory stay around, or would the mutex have to be reinitialized if one of the programs using it gets restarted? Is there any way to test to see if a mutex has been initialized? -- These are my opinions, not necessarily my employer's. I hate spam. _______________________________________________ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions