some posix threads and semaphore test