Added semaphore example
Added cyclic example