Increase interprocess mutex vs boost mutex thread

I just realized that in Boost, there seem to be two worlds of mutexes. definition of some mutexes under boost :: interprocess and mutex under boost :: thread .. is it possible to use interchangeably? for example scoped_lock with boost :: wait?

+5
source share
1 answer

As far as I know, you can use interprocess mutex instead of boost :: thread mutex, but keep in mind that they will probably be slower as they are designed to work in interprocess memory.

You cannot use synchronization mechanisms from a stream and use them in interprocess, they are not at all intended for multiprocessor synchronization.

+6
source

All Articles