Chapter 10: Using Different Kinds of IPC
In this chapter, we will learn about the various ways we can communicate between processes via so-called inter-process communication (IPC). We will write various programs that use different kinds of IPC, from signals and pipes to FIFOs, message queues, shared memory, and sockets.
Processes sometimes need to exchange information—for example, in the case of a client and a server program running on the same computer. It could also be a process that has forked into two processes, and they need to communicate somehow.
There are multiple ways in which this IPC can happen. In this chapter, we'll learn about some of the most common ones.
Knowing about IPC is essential if you want to write more than the most basic of programs. Sooner or later, you'll have a program consisting of multiple pieces or multiple programs that needs to share information.
In this chapter, we will cover the following recipes:
- Using signals...