IPC techniques
An IPC technique generally refers to any means that is used by processes to communicate and transmit data. In the previous chapter, we discussed filesystems and shared memory as our beginning approach to share data between two processes. We didn't use the term 'IPC' for these techniques at that point, but this is in fact what they are! In this chapter, we will add a few more IPC techniques to the ones that we have encountered already, but we should remember that they are different in a number of ways. Before jumping to the differences and trying to categorize them, let's list some IPC techniques:
- Shared memory
- Filesystem (both on disk and in memory)
- POSIX signals
- POSIX pipes
- POSIX message queues
- Unix domain sockets
- Internet (or network) sockets
From the programming point of view, the shared memory and filesystem techniques are similar in certain ways and because of that they can be put into the same group...