Socket programming using the select system call
The select system call allows the calling process to monitor sets of file descriptors for readiness for non-blocking I/O operations. After the file descriptors ready for I/O are returned, the…
The select system call allows the calling process to monitor sets of file descriptors for readiness for non-blocking I/O operations. After the file descriptors ready for I/O are returned, the…
Socket programming involves development of programs for communication between processes running on remote hosts connected over the network. The User Datagram Protocol (UDP) is a core commnication protocol for transmission…
Socket programming involves development of programs for communication between processes running on remote hosts connected over the network. The Transmission Control Protocol (TCP) is for connection-oriented reliable communication between processes…
Signals A signal is a notification delivered to a process by the kernel. A signal indicates that an event has occurred and the process must take note of it. Signals…
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…
Shared Memory Shared memory is one of the three inter process communication (IPC) mechanisms available under Linux and other Unix-like systems. The other two IPC mechanisms are the message queues…
Queue A queue is something we see often in our daily lives. People stand in a queue to get into a bus, to get food in a buffet, buy tickets…
POSIX Threads Synchronization POSIX threads aka pthreads, provide multiple flows of execution within a process. The threads have their own stacks but share the global data and the heap. So…
POSIX threads A process is an execution environment in an operating system. A process has code and data segments which are initialized from a program during an exec system call.…