I'd like you to write a C++ program (probably for Linux) that has 2 threads that can communicate with each other via C++ stream IO.
So, for example, if threadA has:
outputA << "boost" << std::endl;
Then threadB can have
std::cout << s; // prints out "boost"
For a Windows-related example that is similar to this, see the top of the page and the page above at this URL:
[login to view URL]
In our case, we should be able to use a socketpair for this, and be able to communicate in both directions. As I wrote above, you can extend to TCP sockets if you want, even TCP sockets in multiple processes or even multiple computers
13 pekerja bebas membida secara purata $139 untuk pekerjaan ini
HI..i am proficient in C/C++ programming with multi threading concepts using POSIX threads, TCP/IP socket API, process sync with mutexes and semaphores and can help you with console applications.
Embedded Software Engineer with experience in complex systems development with practicing in Programming Firmware, C, C++, Linux and Python. Let's Discuss further.