Code to show that one semaphore blocked by one thread can be opened by other thread with sem_post command