Learn posix semaphore and mutex.