TIP:
- What are the differences between
System V IPC
andPOSIX IPC
? - Why do we have two standards ?
- How to decide which IPC functions to use ?
ANS:
Both have the same basic tools -- semaphores, shared memory and message queues. They offer a slightly different interface to those tools, but the basic concepts are the same. One notable difference is that POSIX offers some notification features for message queues that Sys V does not. (See mq_notify()
.)
Sys V IPC has been around for longer which has a couple of practical implications --
First, POSIX IPC is less widely implemented. I wrote a Python wrapper for POSIX IPC and its documentation lists what I know about POSIX IPC implementations on various platforms.
On all of the platforms liste