Simple code to demonsteate linux ipc using POSIX threads and semaphore