add semaphore sample
Merge pull request #3 from massakai/feature/semaphore

add semaphore sample