POSIX semaphore, shared memory and combination of shared memory and semaphores added