interprocess communication

Interprocess Communication using Unix Domain Sockets

1.0 Unix Domain Sockets A socket is a communication endpoint at a host computer. The socket API provides calls for communication between processes. The socket system call is, int socket (int domain, int type, int protocol); The first parameter to the socket system call is the domain. The domain is actually the communication domain and …

Interprocess Communication using Unix Domain Sockets Read More »

POSIX Shared Memory in Linux

1.0 Shared Memory Shared memory is an inter process communication (IPC) mechanism in Linux and other UNIX-like systems. Based on input parameters, the kernel provides a (shared) memory segment to the calling process. The calling process maps the shared memory segment to its address space. This way, the same shared memory segment can be mapped …

POSIX Shared Memory in Linux Read More »

System V message queues in Linux

1.0 Message queues Message queues are one of the interprocess communication mechanisms available under Linux. Message queues, shared memory and semaphores are normally listed as the three interprocess communication mechanisms under Linux. Semaphores, though, are really for process synchronization. In practice, shared memory, aided by semaphores, makes an interprocess communication mechanism. Message queues is the …

System V message queues in Linux Read More »