In the previous recipe, you learned how to choose an IPC based on some key factors. It's now time to get hands-on with the four communication types, and this recipe focuses on pipes. In this recipe, you'll learn how to use pipes to make two processes communicating full-duplex by using two pipes. We'll not use any form of synchronization as generally, it is not required. In the How it works... section, we'll see why and when is it not required.
Learning how to use the oldest form of IPC – pipes
How to do it...
In this section, we'll develop a program that will create two processes, with the unique goal of sending a message to each other. With a pipe, as we've seen, the data flows in...