April 2020
Intermediate to advanced
412 pages
9h 58m
English
In this recipe, we will create a sample application that creates two processes. One process generates data while another reads the data and prints it to the console:
#include <fstream>#include <iostream>#include <thread>#include <vector>#include <unistd.h>std::string kSharedFile = "/tmp/test.bin";template<class T>class Writer { private: std::ofstream out; public: Writer(std::string& name): ...Read now
Unlock full access