sem_wait/sem_signal works for 2 tasks
working semaphores
clenad code