Implemented Linux semaphores