Simple examples of Linux IPC
All examples are encapsulated on a docker container
make buildwill build the docker image along with all examplesmake startwill build and launch the containermake shellwill open a shell within the container. Compiled examples are on thebin/directorymake stopstops the container
- Fork
fork
- Signals
signal-intsignal-child-waitsignal-child-ignore(not working properly as of now, skip)signal-child-handle
- Pipes
pipes
- FIFOs
fifo-simple.shfifo-multiple-writers.shfifo-multiple-writers-line-buffered.sh
- File Locking
flock.shflock
- Memory Mapped Files
shmem
- Semaphores
semaphore
- Message Queues
mqueue-sender+mqueue-receiver
- Unix Sockets
unix-socket-forkunix-socket-server+unix-socket-client