IO Multiplexing (select,poll,epoll)
Linux – IO Multiplexing – Select vs Poll vs Epoll One basic concept of Linux (actually Unix) is the rule that everything in Unix/Linux is a file. Each process has a table of file descriptors that p...
Linux – IO Multiplexing – Select vs Poll vs Epoll One basic concept of Linux (actually Unix) is the rule that everything in Unix/Linux is a file. Each process has a table of file descriptors that p...
Sockets Tutorial This is a simple tutorial on using sockets for interprocess communication. The client server model Most interprocess communication uses the client server model. These terms refer ...
Shared Memory When two processes need to exchange data efficiently, one of the best options on Linux/Unix systems is shared memory. Instead of sending data through pipes or sockets (which require ...
Mutex lock for Linux Thread Synchronization (user space) Thread synchronization ensures that multiple threads or processes can safely access shared resources without conflicts. The critical sectio...
Understanding Message Queues in Linux In Linux, message queues are a powerful inter-process communication (IPC) mechanism. Unlike pipes, which transfer raw byte streams, message queues allow proce...
Anonymous Pipes An anonymous pipe is one of the simplest forms of inter-process communication (IPC) in Linux. It provides a unidirectional communication channel between related processes, typicall...