August 2017
Intermediate to advanced
438 pages
14h 19m
English
It is considered that spawning separate sub-processes instead of threads makes a program more reliable, because termination of a sub-process does not terminate the main process. We won't argue with that assumption here, and just see how data sharing between processes can be implemented.
#include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/containers/deque.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interprocess/sync/interprocess_mutex.hpp> #include <boost/interprocess/sync/interprocess_condition.hpp> #include <boost/interprocess/sync/scoped_lock.hpp> #include <boost/optional.hpp>
Read now
Unlock full access