Can C ++ 11 condition_variables be used to synchronize processes?

I am trying to learn about C ++ 11 std::condition_variable. I read articles in cppreference.com and cplusplus.com , and also C ++ 0x has no semaphores? How to synchronize streams? .

To my question, which, as I think, the three marked articles did not answer, it is possible: "semaphores" that are created with a combination of std::mutexand std::condition_variable(see answers in C ++ 0x do not have semaphores? How to synchronize threads? ) Is used for synchronization between processes, how can posix semaphores be? It’s not clear to me that this functionality can be achieved because I don’t see “extensible” information, such as the name used to create these objects.

+2
source share
2 answers

No, they are designed to synchronize threads within a single process, not processes.

. interprocess - (, temp) (, ) . boost::interprocess ( - , " ", ).

, boost:: interprocess. . .

+3

IPC ( ) ++ - io.

++ IPC .

+1

Source: https://habr.com/ru/post/1659366/


All Articles