Playing with POSIX shared memory and semaphores Classical writer-readers problem, but with conditional consumation of the data - involving rendezvous
To compile execute make
To start example setup execute run.sh which start 1 writer and 2 reader processes and redirect thir stderr to log file.