Semaphore simplified, but needs help of task